有如下表t1:id name
--------------
1 aaa
2 bbb如下sql语句:
select id,name from t1 where id in (1,2,3,4)这个sql语句会返回2条记录,怎么写sql语句才能让他返回四条呢?
(保留不存在的id,其它字段为null或者'' 什么都行)谢谢关注
--------------
1 aaa
2 bbb如下sql语句:
select id,name from t1 where id in (1,2,3,4)这个sql语句会返回2条记录,怎么写sql语句才能让他返回四条呢?
(保留不存在的id,其它字段为null或者'' 什么都行)谢谢关注
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货