Microsoft
Software
Hardware
Network
Question : Set variable
Good morning,
Im trying to set a variable which can be used in following SQL statments, but the line I thought would work, gives me errors.
I thought the line "set @tmpPriID = select uuid();", would assign a uuid to the variable @tmpPriID, where I can use it in multiple select statments after, and then call it again to generate a new value to @tmpPriID.
However when I try and execute "set @tmpPriID = select uuid();", I get an error 1064(42000) you have an error in your SQL syntax;.
Any ideas what Im doing wrong?
Thank you
Answer : Set variable
please try:
1: 2: 3: 4: 5:
set @tmpPriID = uuid(); or select @tmpPriID = uuid();
Random Solutions
Adding a Print button to a word document
Upgrading Group Policy To Work With Windows 7 Clients Using Windows Server 2003.
Convert Date Format CCYYMMDD to MMDDYYYY
Adding additional DNS Zones
How can I get back the excel file I overwritten?
scrollbars on treeviews
Need to iterate through all the files in a dir in perl and copy them elsewhere
Event 4321
query
Crystal 2008 modify current date format.