Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
SQL
alter table location
alter column empname locat varchar();


but my query is not working out
please help me out of this question
Posted
Updated 8-May-15 6:45am
v3
Comments
Maciej Los 8-May-15 12:44pm    
Repost!
http://www.codeproject.com/Questions/989692/How-do-I-alter-the-column-in-a-table-sql?arn=1

1 solution

You need to put [] around your field name [empname locat] since it has a space in it.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900