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
CISCO ASA 5505 blocking internet access on specific mac address on local network
How can I tell what label template was used on an existing Word file?
Server 2008 will restart on its own with this error during DC promo to this server
Updating VMWare tools for guest OS on ESX 4.0 and ESXi host?
Sort elements after explode in php
crontab -e, errors
Missing Nodes in Asp.Net Menu
Simple questions on VLAN addressing
Changing Background colors for a column based on contents of cell
Replace HDD Western Digital Scorpio in Fujitsu Amilo Pi 2550