討論串[問題] sqlcommand中parameter的用法
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓1(1推 0噓 1→)留言2則,0人參與, 最新作者TeemingVoid (TeemingVoid)時間13年前 (2011/12/29 20:12), 編輯資訊
0
0
0
內容預覽:
我使用的是一個有點笨但寫法一致的作法,請參考看看:. SQLCommnad 的 CommandText 屬性是:. select * from Client. where (cid = @cid or @cid = ''). and (cname = @cname or @cname = '').
(還有77個字)

推噓1(1推 0噓 3→)留言4則,0人參與, 最新作者Arim (Arim5566)時間13年前 (2011/12/29 16:36), 編輯資訊
0
0
0
內容預覽:
各位版友好. 假設目前我有四個欄位(四個textbox,分別是cid、cname、tel、city). SqlCommand cmd = new SqlCommand(. "select * from Client where cid=@cid and cname=@cname and. tel=@
(還有472個字)
首頁
上一頁
1
下一頁
尾頁