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 |
|
gemispence
Yak Posting Veteran
71 Posts |
Posted - 2006-02-16 : 17:57:28
|
| I'm inserting rows from one table to another and trying to figure out how to not allow nulls from one field. ie - the feeder table can have nulls, but when I insert into the other table, I don't want the records that have NULLS in one field to insert. I hope that's clear. |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
Posted - 2006-02-16 : 18:00:38
|
| INSERT INTO Table1 (Column1, Column2, Column3)SELECT Column1, Column2, Column3FROM Table2WHERE Column1 IS NOT NULLTara Kizeraka tduggan |
 |
|
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2006-02-16 : 18:02:49
|
| change the column to NOT NULLuse ALTER TABLE to do this----------------------------------'KH'Time is always against us |
 |
|
|
gemispence
Yak Posting Veteran
71 Posts |
Posted - 2006-02-16 : 18:12:46
|
| tkizer - you are truly my Almighty SQL Goddess. What can i say. |
 |
|
|
|
|
|