-- 给数据库'Test'重命名为:'Test123'
exec sp_renamedb 'Test','Test123'
exec sp_tables
exec sp_columns 'Student'
自定义存储过程
“usp_Helloworld”并使用。实现输出hello world!
create proc usp_Helloworld
as
begin
print 'hello world!'
end
exec usp_Helloworld
本文介绍了SQL中实用的操作技巧,包括数据库重命名、查询表数量及列信息的方法,并演示了如何创建和调用简单的存储过程来输出文本。
2045

被折叠的 条评论
为什么被折叠?



