Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Insert blank column into temp table

Status
Not open for further replies.

jayfox

Programmer
Dec 19, 2002
29
0
0
US
How would I create a temp table where some of m columns I would like to leave blank heres what I tried but failed:
I would like to leave the name column blank:

drop table #test
create table #test
( id varchar (5),
name varchar (40),
contact varchar (30))
insert into #test
select customerid as id,
contactname as contact
from customers
 
Specify the columns you want to insert into in the insert statement.

Questions about posting. See faq183-874
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top