[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 253
  • Last Modified:

Renaime a Data file with and sql statement

Hi want to rename a data filed  with a sql statement, i,m using vb 6

i know the alter statement but don't know if there any function to renaime a data filed.
0
cano63
Asked:
cano63
1 Solution
 
Ryan ChongCommented:
0
 
game-masterCommented:

good morning!

i hope this give u idea..

ALTER TABLE <your table name> RENAME COLUMN <field to rename> TO <new fieldname>


game-master
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now