Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
real_pearl
Posting Yak Master
106 Posts |
Posted - 2004-06-02 : 03:55:33
|
| I want to create a dummy field in temporary table that can hold floating values. How I may do thisselect employeeid, bin = 0 into ##tmp from employeesupdate ##tmpset bin = 85.114where user_id = 1select * from ##tmpdrop table ##tmp |
|
|
mohdowais
Sheikh of Yak Knowledge
1456 Posts |
Posted - 2004-06-02 : 04:23:15
|
No problemo:select employeeid, bin = cast(0 as numeric(10,3)) into ##tmp from employeesupdate ##tmpset bin = 85.114where user_id = 1select * from ##tmpdrop table ##tmp OS |
 |
|
|
real_pearl
Posting Yak Master
106 Posts |
Posted - 2004-06-02 : 07:35:55
|
| Thanks I have done this in the following waydeclare @sql varchar(5000)select @sql = 'select user_id, bin = ''000.000'' into ##tmp from yp_users'print @sqlexec(@sql) update ##tmpset bin = 85.114where user_id = 1select * from ##tmpdrop table ##tmp |
 |
|
|
|
|
|