|
-
Dec 28th, 2001, 02:02 AM
#1
Thread Starter
Lively Member
how to add column
hi,
just want to ask how to add a column programmatically using ADO. Im trying to use the code below but it causes error.
dbconnTmp.Execute ("alter table table1 add column cd C(4)")
what's wrong with my code?
pls. help ..thanks in advance
-
Dec 28th, 2001, 02:05 AM
#2
-= B u g S l a y e r =-
Re: how to add column
Originally posted by tonio
hi,
just want to ask how to add a column programmatically using ADO. Im trying to use the code below but it causes error.
dbconnTmp.Execute ("alter table table1 add column cd C(4)")
what's wrong with my code?
pls. help ..thanks in advance
what is C(4) ?
thats not a valid field type, is it?
-
Dec 28th, 2001, 02:13 AM
#3
Thread Starter
Lively Member
hi,
i thought C(4) stands for field type character and field length = 4. What should i use?
-
Dec 28th, 2001, 02:21 AM
#4
Try char(4) or varchar(4)
Best regards
-
Dec 28th, 2001, 02:25 AM
#5
Thread Starter
Lively Member
yes, it already worked! thanks a lot
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|