记录一些SQL编写的技巧,不断更新中……

多个字段查询

SELECT id_number,birthday,gender_typecode FROM `ord_passenger` where order_id in (123456, 654321);

套接查询

select * from order where order_id = (select id from ord_order where order_no = '123456');

 

相关文章:

  • 2021-06-14
  • 2021-11-17
  • 2022-12-23
  • 2021-08-11
  • 2021-05-09
  • 2021-11-03
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-08-28
  • 2022-12-23
  • 2021-11-14
  • 2021-05-03
  • 2021-12-28
相关资源
相似解决方案