SQLServer--常用的系统存储过程使用

xiaoxiao2021-02-28  181

常用存储过程有哪些??


存储过程调用方法

提示:EXECUTE可以简写称EXEC

sp_databases --列出系统当前的数据库 exec sp_renamedb 'SharkDB','SharkDB1' --修改数据库的名称 use StuManageDB go sp_tables --当前数据库中查询的对象的列表 exec sp_columns Students --返回Students列表的信息 exec sp_help students --查看表Studetns的信息 exec sp_helpconstraint Students --查看Students的约束 exec sp_stored_procedures --查看当前数据库中的存储过程
转载请注明原文地址: https://www.6miu.com/read-18630.html

最新回复(0)