MySQL SQL编写笔记

记录一些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');

 

原文链接:https://www.cnblogs.com/paul8339/p/13926477.html
本文来源 爱码网,其版权均为 原网址 所有 与本站无关,文章内容系作者个人观点,不代表 本站 对观点赞同或支持。如需转载,请注明文章来源。

© 版权声明

相关文章