View the structure of the table and Alter table

1 the command to view the structure of the table.

The structure of a table can be viewed using the DESCRIBE TABLE_NAME command. This command shows the entire schema of the table.

2 the limitation of alter command

ALTER Command supports only the RENAME TABLE and ADD COLUMN variants. Other kinds of ALTER TABLE operations such as DROP COLUMN, ALTER COLUMN, ADD CONSTRAINT are omitted

Alter Table command is a DDL command that is used to change the definition of the table. Changing definition means changing datatype, width of columns or adding a new column in the table.

Column can’t be deleted with alter command.
Column can’t be renamed a column.
Column can’t be added in between of the existing columns.
When a column is added, it will be added at the end of the table.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值