Archives of the TeradataForum
Message Posted: Wed, 13 Feb 2008 @ 09:05:21 GMT
| Subj: | | Re: How to write procedure in teradata |
| |
| From: | | sreenivasa.akula |
Thank you McCall...
Exactly we can't use select stmt directly inside the brases..(insert into table values('sel current_date') it is wrong..
You can't put a Select statement inside a VALUES clause, only literals or host variables.
You can do something like INSERT INTO myTable SELECT CURRENT_DATE Or SET myLocalVar = CURRENT_DATE; INSERT INTO myTable VALUES (myLocalVar)
thanks yaar
|