1.

Columns can not be inserted in to a table once it is created is it true or false

Answer»

Answer:

False

Explanation:

Tables are database objects that are created to store data .In a database table individual records form ROWS WHEREAS columns define individual traits or attributes.

At the time of creating tables, the columns and their data types are defined but this structure is not frozen, more columns can be added, dropped or even modified to change the data type. All this can be done keeping the data integrity features (PRIMARY & foreign key) in mind.

ALTER TABLE is the SQL COMMAND that makes adding more columns to a database table, possible after it's creation.

ALTER TABLE - ADD ALLOWS adding new columns.

ALTER TABLE - DROP COLUMN allows dropping a column from an existing table.

ALTER TABLE - MODIFY allows change of data type of the specified column.

Hope this helps.



Discussion

No Comment Found