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的
简单的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的
相关文章推荐
- 简单有效的SQL 存储过程移植方案(2)——从Sybase 到DB2
- 简单有效的SQL 存储过程移植方案(3)——从Sybase 到DB2
- MySQL 函数存储过程触发器定义简单示例
- 简单的存储过程示例
- 分页存储过程的应用简单示例随笔(附所有代码)
- 简单存储过程示例
- PostgreSQL存储过程简单示例
- 一个简单的SQL游标示例的存储过程
- 为Sybase ASA创建外部存储过程(java示例)
- sqlserver存储过程中利用游标遍历结果集简单示例及查询数据库时间
- 一个sql的存储过程的简单示例
- [导入]多参数存储过程的简单示例
- mysql存储过程简单示例
- 简单有效的SQL 存储过程移植方案(1)——从Sybase 到DB2
- oracle简单的存储过程以及job示例
- 简单的存储过程分页
- 存储过程示例
- sql存储过程几个简单例子(一)
- [示例]存储过程循环与用户自定义函数递归调用
- Sybase分页存储过程实现