-2
我在執行下面的代碼時遇到問題(語法錯誤)。請幫我,我該怎麼做。謝謝。C#中的SQL select語句
表列:pId, pAltId, pMobile, pDate, pName
變量:argID, alt_ID, p_mobile, p_date, p_Name
聲明:
String selectStr = "select * from " + thisTable + " where pId = '" + argID "+ OR +
pAltId = " + alt_ID "+ OR + pMobile =" + p_mobile "+ OR + pDate =" + p_date "+ OR +
pName = "+ p_Name "'";
什麼樣的問題呢? – 2013-03-26 22:40:42
一個字:[**佔位符**](http://bobby-tables.com/csharp.html) – 2013-03-26 22:42:35
不確定你的問題是什麼! – 2013-03-26 22:45:17