-1
Command = New OleDbCommand("SELECT dbo.tbl_staff.staff_id, dbo.tbl_staff.username, dbo.tbl_staff.password, dbo.tbl_useraccount.position_id " & _
"FROM dbo.tbl_position INNER JOIN " & _
"dbo.tbl_useraccount ON dbo.tbl_position.position_id = dbo.tbl_useraccount.position_id INNER JOIN " & _
"dbo.tbl_staff ON dbo.tbl_useraccount.useraccount_id = dbo.tbl_staff.staff_id " & _
"WHERE (dbo.tbl_staff.username = '" & TextBox1.Text & "') AND (dbo.tbl_staff.password = '" & TextBox2.Text & "')", Connection)
它說,不正確的語法。與SQL查詢Vb.Net不正確的語法
你的編碼方式是開放的SQL注入 – Pavan 2012-01-10 05:35:48
「它說,不正確的語法」 - 奇怪的是,編譯器是很少錯誤....建議你向我們展示更多的實際代碼,以及導致錯誤的行。 – 2012-01-10 05:36:19
請出示確切的錯誤代碼,和周圍的代碼行到包括剪斷 – 2012-01-10 06:23:03