About 50 results
Open links in new tab
  1. How to DROP multiple columns with a single ALTER TABLE statement …

    Jun 14, 2011 · Multiple columns and constraints can be listed. It says that mutliple columns can be listed in the the statement but the syntax doesn't show an optional comma or anything that would even hint …

  2. sql server - How to remove a column from an existing table? - Stack ...

    Sep 9, 2014 · How to remove a column from an existing table? I have a table MEN with Fname and Lname I need to remove the Lname How to do it?

  3. sql server - How to drop column with constraint? - Stack Overflow

    Dec 27, 2011 · The object 'DF__Person__PersonID__0DE74436' is dependent on column 'PersonID'. Msg 4922, Level 16, State 9, Line 8 ALTER TABLE DROP COLUMN PersonID failed because one …

  4. How to delete or add column in SQLITE? - Stack Overflow

    Dec 9, 2011 · The ALTER TABLE command in SQLite allows the user to rename a table or to add a new column to an existing table. It is not possible to rename a column, remove a column, or add or …

  5. How to delete a column from a table in MySQL - Stack Overflow

    Dec 20, 2012 · ALTER TABLE tbl_Country DROP COLUMN IsDeleted, DROP COLUMN CountryName; This allows you to DROP, ADD and ALTER multiple columns on the same table in the one …

  6. How do you drop a default value from a column in a table?

    ALTER TABLE {TableName} DROP CONSTRAINT ConstraintName If you didn't specify a name when you created the constraint, then SQL Server created one for you. You can use SQL Server …

  7. sql - Remove Identity from a column in a table - Stack Overflow

    We have a 5GB table (nearly 500 million rows) and we want to remove the identity property on one of the column, but when we try to do this through SSMS - it times out. Can this be done through T-SQL?

  8. How do you ADD and DROP columns in a single ALTER TABLE

    Nov 21, 2016 · ALTER TABLE { ALTER COLUMN column_name | ADD | DROP } According to Transact-SQL Syntax Conventions (Transact-SQL) the | (vertical bar) Separates syntax items …

  9. How to add 'ON DELETE CASCADE' in ALTER TABLE statement

    I have a foreign key constraint in my table, I want to add ON DELETE CASCADE to it. I have tried this: alter table child_table_name modify constraint fk_name foreign key (child_column_name)

  10. sql - How to drop a column from a Databricks Delta table ... - Stack ...

    Jan 31, 2019 · ALTER TABLE main.metrics_table DROP COLUMN metric_1; I was looking through Databricks documentation on DELETE but it covers only DELETE the rows that match a predicate. …