您的位置:首页 > 其它

sybase存储过程简单示例

2012-04-06 20:00 211 查看
1.
简单的hello world

create procedure hello

as

select ‘hello world’



在isql里面输入:hello就可以显示hello world

2.查询某个表的存储过程:

create procedure hello
as
select top 100BLACKLIST.TEL,BLACKLIST.TYPE,BLACKLIST.CREATE_TIME,BLACKLIST.DESCRIPTION
from BLACKLIST

sybase存储过程和sql server的很相似,sybase数据库的资料很少,可以参考sql server的
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: