怎样用一条SQL语句修改数据库内的表名,谢谢!(50分)

G

gdcqs

Unregistered / Unconfirmed
GUEST, unregistred user!
怎样用一条SQL语句修改数据库的表名,谢谢!
 
数据库用的什么?
 
如果是MS SQL
调用系统存储过程 sp_rename 'table1', 'table2'
 
如果数据库是ORACLE:
RENAME command

PURPOSE:
To rename a table, view, sequence, or private synonym.

SYNTAX:

RENAME old TO new

where:

old
is the current name of an existing table, view, sequence, or private
synonym.

new
is the new name to be given to the existing object.
 
Rename OldTableName to NewTableName
 
接受答案了.
 
顶部