问一下
假如现在想update一下
sql1="update table set aa=aa where id=1";
sql2="update table set aa=aa where id=1 and classid=12 and infoid=1";delete:
sql1="delete from table where id=1";
sql2="delete from table where id=1 and classid=12 and infoid=1";
请问一下update时 sql1和sql2哪个更好些
delete时 sql1和sql2哪个更好些请说一下原因,谢谢。
假如现在想update一下
sql1="update table set aa=aa where id=1";
sql2="update table set aa=aa where id=1 and classid=12 and infoid=1";delete:
sql1="delete from table where id=1";
sql2="delete from table where id=1 and classid=12 and infoid=1";
请问一下update时 sql1和sql2哪个更好些
delete时 sql1和sql2哪个更好些请说一下原因,谢谢。
sql1="update table set aa=aa where id=1"; 我要腿长的
sql2="update table set aa=aa where id=1 and classid=12 and infoid=1";我要腿长又前凸后翘的
sql1="update table set aa=aa where id=1";我要腿长的
sql2="update table set aa=aa where id=1 and classid=12 and infoid=1";我要腿长又前突后翘的
当然是选前者比较快
2."SELECT `Id` FROM CSDN WHERE `Mimi`='F' AND `Hip`=86 AND `Age`=18 AND `First night`=1";不过 第2条肯定是返回空记录...哈哈哈