About 25,400 results
Open links in new tab
  1. How do you change the datatype of a column in T-SQL Server?

    Mar 9, 2009 · ALTER COLUMN last_name VARCHAR(75) NOT NULL; This SQL Server ALTER TABLE example will modify the column called last_name to be a data type of VARCHAR(75) …

  2. How do I change the data type for a column in MySQL?

    Aug 31, 2009 · Will alter table delete the data on the table or fail on the execution if something is not complaint with the new column type? ALTER TABLE tablename MODIFY columnname …

  3. How to ALTER multiple columns at once in SQL Server

    Jan 24, 2015 · I need to ALTER the data types of several columns in a table. For a single column, the following works fine: ALTER TABLE tblcommodityOHLC ALTER COLUMN …

  4. sql - Modifying a column type with data, without deleting the data ...

    May 18, 2012 · I was under the impression I cannot just alter the column type? Is the best method to create a temp column, "column2", transfer the data to this column, from the column with the …

  5. How to change column datatype in SQL Server database without …

    Apr 5, 2022 · I have SQL Server database and I just realized that I can change the type of one of the columns from int to bool. How can I do that without losing the data that is already entered …

  6. How to alter a column's data type in a PostgreSQL table?

    Aug 23, 2015 · ALTER TABLE tbl_name ALTER COLUMN col_name varchar (11); What is the correct command to alter the data type of a column?

  7. Altering user-defined table types in SQL Server - Stack Overflow

    Jul 10, 2012 · Save a create script for the user defined table you wish to alter. 4.5 Add the additional column or changes you need to the user defined table type. Drop the user defined …

  8. SQL alter column datatype from nvarchar to int - Stack Overflow

    Aug 28, 2013 · Can the datatype of a field be changed to int from nvarchar?? alter table employee alter column designation int is this valid?? If not can it be done in some other way?? P.S: I am …

  9. sql server - How to change the data type of a column without …

    I have a column which has a datatype : datetime. But now i want to convert it to datatype varchar. Can i alter the datatype without droppping the column? If yes, then please explain how?

  10. Changing the data type of a column in Oracle - Stack Overflow

    ALTER TABLE place MODIFY( street_name VARCHAR2(20), county VARCHAR2(20), city VARCHAR2(20) ) Note that I am also changing the data type from VARCHAR to VARCHAR2 …