例7-16:更改orders 表的列p_id 名称为products_id exec sp_rename 'orders.[p_id]', 'product_id', 'column' 运行结果如下: caution: changing any part of an object name could break scripts and stored procedures. the column was renamed to 'product_id'.
例7-17: 更改orders 表的名称为p_orders。 exec sp_rename 'orders', 'p_orders'' 运行结果如下: caution: changing any part of an object name could break scripts and stored procedures. the object was renamed to 'p_orders'.