Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
sql alter table query
Name: mark Date: March 19, 2003 at 08:06:23 Pacific OS: w2k CPU/Ram: p4 512mb
Name: gpp Date: March 19, 2003 at 08:08:27 Pacific
Reply:
If your trying to show us some code, it didnt post.
0
Response Number 2
Name: mark Date: March 19, 2003 at 08:18:26 Pacific
Reply:
that is the code,
its a sql query to remove various columns from a table
0
Response Number 3
Name: gpp Date: March 19, 2003 at 09:23:10 Pacific
Reply:
Sorry, the spacing threw me off.
This code should work...
alter table TABLE_NAME DROP column ONE, DROP column TWO, DROP column THREE;
of course this wont work if your dropping all columns in the table.. to do that, you have to use DROP TABLE. In other words, there must be at least one column left over.
Summary: If you want to add a field to the database table? You need to use an ADODB.Connection object and the SQL command ALTER TABLE Like this: Dim ConnString ' Connection String Dim CN As ADODB.Connection Se...
Summary: I have a SQL Server Table that has a column with a number in it. Is there a way that I can query that table to find out what the number is and create that number of rows in a new table. ...
Summary: Hi all. I got a proble with SQL query I want to use. I got the following 2 Tables. SKU and SKUXLOC Example. SKU TABLE SKU |Description |Supp ----------------------- 1234 |Book1 |Supp1 4567 |B...