int id1=129,id2=6106;
sql="select * from train where fstation=:id1 and estation=:id2";
id1,id2为一个值,想找出所有满足fstation=id1,estation=id2 记录,这问这个SQL语句怎么写?上面这样写错在哪里?
...全文
681打赏收藏
想找出所有满足fstation=id1,estation=id2 记录,这问这个SQL语句怎么写
int id1=129,id2=6106; sql="select * from train where fstation=:id1 and estation=:id2"; id1,id2为一个值,想找出所有满足fstation=id1,estation=id2 记录,这问这个SQL语句怎么写?上面这样写错在哪里?