我正在使用sqlite3。sqlite3 where子句
此查詢豈不等於幹活,我
SELECT * FROM tablename where Rank > 5 and Statid='0 & 1';
在這裏,我想選擇所有這些記錄機智statid 0和1。我怎麼這樣做?
我正在使用sqlite3。sqlite3 where子句
此查詢豈不等於幹活,我
SELECT * FROM tablename where Rank > 5 and Statid='0 & 1';
在這裏,我想選擇所有這些記錄機智statid 0和1。我怎麼這樣做?
您的意思是:
SELECT * FROM tablename where Rank > 5 and Statid in (0,1);
Haim Evgi非常感謝 – akhil 2010-11-10 06:50:26
如果它的幫助將它作爲正確的答案點擊正確答案標記 – 2010-11-10 06:52:18
不Statid包含數字或文字? – 2010-11-10 06:36:20