What does the “@” symbol do in SQL?

前端 未结 7 2040
终归单人心
终归单人心 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:05

    publish data where stoloc = 'AB143' 
    |
    [select prtnum where stoloc = @stoloc]
    

    This is how the @ works.

提交回复
热议问题