View Single Post
Old 10-27-2008, 02:28 PM   #1 (permalink)
Dave
The Acquainted
 
Dave's Avatar
 
Join Date: Apr 2008
Posts: 110
Thanks: 97
Dave is on a distinguished road
Default MySQL User-Def. Var.

Hi --

After defining a UDF, how can I select the UDF "into" a table, like this:

Code:
SET @datadate = "20081020" ;

INSERT INTO newtable
SELECT name, phone, @datadate AS extraction_date
FROM oldtable ;
Thanks for any help!
Dave
Dave is offline  
Reply With Quote