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 =...
58 months ago

TAGS
AWS (28 posts )
RAILS (15 posts )
SECURITY (15 posts )
JAVASCRIPT (14 posts )
REACT (8 posts )
RUBY (8 posts )
NODEJS (6 posts )
LARAVEL (5 posts )
JAPAN (4 posts )
INFRA (4 posts )
IAM (3 posts )
ACTIVE RECORD (3 posts )
LIFE (3 posts )
PHONG THủY (3 posts )
JAVA (3 posts )
MEMORY (2 posts )
VPN (2 posts )
ANIME (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 )
EXCEPTION (2 posts )
VISA (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 )
HáN VIệT (1 posts )
OAUTH (1 posts )
SUBNET (1 posts )
CREDIT (1 posts )
COMPILER (1 posts )
VUEJS (1 posts )
THUế (1 posts )
WEBSITE (1 posts )