Re: [.NET] 關於SQL語言
※ 引述《linmic (Ironic)》之銘言:
: 首先你應該不是用複製貼上的吧
: 造成你引用你朋友的程式碼有筆誤
: string1 = "select Cword from dictionary where Eword in('" vin(0) "')"
: vin(0)是變數,要用字串相接的方式跟SQL語法接在一起才能Work吧
: 你自己的方式也是一樣
: string1 = "select Cword from dictionary where Eword = vin" (誤)
: string1 = "select Cword from dictionary where Eword = " & vin (正)
這樣還是不正確,字串必須要用單引號包起來
"select Cword from dictionary where Eword = '" & vin & "'"
這樣才對
--
▃▅▇▆▄ ▆▂▃ `
逝去感情如何能留住,半點癡情遺留殊不易,██▅▇▄▃ ▇▃▂" .
█████████▃i ▁▄▇
更多悽悽慘慘的遭遇…………██▆▃ █▅▆▃ˍ▄*
◢ ▂█▄▇▅▂▌.
我不知道,王~八~蛋~~! ▂▆███ █▄▃ 。fumizuki。Check。
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 60.248.175.60
推
06/14 14:41, , 1F
06/14 14:41, 1F
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 3 之 3 篇):
Visual_Basic 近期熱門文章
PTT數位生活區 即時熱門文章