Blog
  • Home
  • Technical
  • Life
  • Login
Một số trick trong postgreSQL
TECHNICAL

Một số trick trong postgreSQL

Bài này dùng postgre trong Rails và sẽ được update liên tục. Duyệt array và query từng phần tử trong array Bài toán đặt ra là cho một array các ids: ids = [1, 2, 3, 100000, 4, 5] Bạn muốn duyệt từng phần tử trong ids, với mỗi phần tử sẽ query vào bảng User trong DB và trả về giá trị tương ứng, nếu ko có record tương ứng với id thì trả về nil. Ví dụ id =...
84 months ago

TAGS
AWS (28 posts )
SECURITY (15 posts )
RAILS (15 posts )
JAVASCRIPT (14 posts )
REACT (9 posts )
RUBY (8 posts )
JAPAN (8 posts )
NODEJS (6 posts )
LARAVEL (5 posts )
INFRA (4 posts )
VISA (3 posts )
LIFE (3 posts )
PHONG THủY (3 posts )
JAVA (3 posts )
IAM (3 posts )
ACTIVE RECORD (3 posts )
EXCEPTION (2 posts )
PROGRAMMING (2 posts )
C++ (2 posts )
TOáN HọC (2 posts )
CHứNG KHOáN (2 posts )
ECS (2 posts )
MUTABLE (2 posts )
AWS EC2 (2 posts )
WEBPACK (2 posts )
DNS (2 posts )
UNIT TEST (2 posts )
REDUX (2 posts )
MEMORY (2 posts )
VPN (2 posts )
ANIME (2 posts )
GO DEBUG (2 posts )
CIRCLECI (2 posts )
TàI CHíNH (2 posts )
HTML (2 posts )
VăN HọC (2 posts )
S3 (2 posts )
IMMUTABLE (2 posts )
VPC (2 posts )
REFERENCE (2 posts )
C (2 posts )
NGINX (2 posts )
EC2 (2 posts )
POSTGRESQL (1 posts )
SUBNETTING (1 posts )
ASSOCIATION (1 posts )
SSO (1 posts )
NAT INSTANCE (1 posts )
RAKUTEN (1 posts )
SOCKET (1 posts )