What does the “@” symbol do in SQL?

前端 未结 7 2035
终归单人心
终归单人心 2020-11-28 04:16

I was browsing through the questions and noticed this:

SELECT prodid, issue
FROM Sales 
WHERE custid = @custid 
AND datesold = SELECT MAX(datesold) 
                 


        
7条回答
  •  隐瞒了意图╮
    2020-11-28 05:08

    Its a parameter the you need to define. to prevent SQL Injection you should pass all your variables in as parameters.

提交回复
热议问题