How do I rename a column in a database table using SQL?

前端 未结 11 1693
时光说笑
时光说笑 2020-12-12 18:25

If I wish to simply rename a column (not change its type or constraints, just its name) in an SQL database using SQL, how do I do that? Or is it not possible?

This

11条回答
  •  忘掉有多难
    2020-12-12 19:19

    The standard would be ALTER TABLE, but that's not necessarily supported by every DBMS you're likely to encounter, so if you're looking for an all-encompassing syntax, you may be out of luck.

提交回复
热议问题