What does the “@” symbol do in SQL?

前端 未结 7 2007
终归单人心
终归单人心 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.

    0 讨论(0)
提交回复
热议问题