Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Want to increase column by 1 character
Message
From
05/10/2000 14:20:48
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00425446
Message ID:
00425453
Views:
9
>i have a 1 character column that now needs to be two characters. i would also like to insert a leading 0 as the first character in the new two character column. so if the old value was '1', i would now like to have '01'.
>
>thanks
>
>brenda

ALTER TABLE MyTable ALTER COLUMN MyColumn C(2)
REPLACE ALL MyColumn WITH "0" + MyColumn
Erik Moore
Clientelligence
Previous
Reply
Map
View

Click here to load this message in the networking platform