10.select dateadd(dd,-5,getdate()); --得到五天前的日期
11. Sybase服务的启动与停止
a. Sybase服务的启动
$SYBASE/$SYBASE/install/startserver –f $SYBASE/$SYBASE_ASE/install/RUN_SERVERNAME
b.Sybase服务的停止
isql – Usa –P –S
shutdown
go
c.如果在数据库中使用了identity,那么要尽量使数据库正常shutdown,否则在数据库重新启动时它的值会增长得非常的大,除非设置参数
12.ibatis调Sybase存储过程报“Stored procedure ‘get All Users’ may be run only in unchained transaction mode.The ‘SET CHAINED OFF’ command will cause the current session to use unchained transaction mode.”
可通过在SQL Advantage中执行sp_procxmode ‘getAllUser’,’anymode’解决。
其中getAllUser是存储过程名称