这句sql中exists后的select ‘s’什么意思啊...我刚接触看不懂啊,请各位帮帮忙啊
Select Count(*) Into li_count From i_recvs a Where Not Exists(Select 's' From i_recvimgs b Where a.recvid=b.recvid) And workid=i_workid;
Select Count(*) Into li_count From i_recvs a Where Not Exists(Select 's' From i_recvimgs b Where a.recvid=b.recvid) And workid=i_workid;
就是判断a.recvid=b.recvid存在不存在这样的数据,存在返回'S'。
这个's'没有实际意义,就是代表存在数据。
表示有记录存在。
你也可以用*来表示也可以,1 也可以