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
Trouble with WIN7 XP Mode and Printing
Dual monitor support
Getting Values From Form Controls
AS400 Client Access IP Address
Exchange - outgoing messages stuck in SMTP Queue after repair install -
how to empty a mailbox of microsft exchange2000 from the server?
Lables printing problem using MS Word
Scripting vs coding
outlook 2007 keeps faulting in module msoert2.dll
Using IAS Authentication logs to document VPN User access to network via ASA 5520