changing the formatproperty using SQL

B

Beginner

How do I change the formatproperty of a column/field with
the Number fieldtype (from double to currency) in a SQL
statement ?

Do I use Alter column as below ? How do I incorporate the
change in format property ?
ALTER TABLE ZBILLINGNEW ALTER COLUMN [fieldname] Number

Please Help

Thanks in advance
 
B

Bryan

Beginner,

Yes, it sounds like you have the appropriate syntax. Here
it is again:

ALTER TABLE <table name>
ALTER COLUMN <column name> <data type [(<precision>)]>

An example of settting changing a column's data type to a
varchar of length 25 would be:

ALTER TABLE tblMyTable
ALTER COLUMN MyColumn varchar(20)

Bryan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top