validationQuery是用来验证数据库连接的查询语句,这个查询语句必须是至少返回一条数据的SELECT语句.每种数据库都有各自的验证语句,下表中收集了几种常见数据库的validationQuery.DataBase validationQueryhsqldb select 1 from INFORMATION_SCHEMA.SYSTEM_USERSOracle select 1 from dualDB2 select 1 from sysibm.sysdummy1MySql select…
修改视图 --SQL Server 2005 GO IF EXISTS (SELECT * FROM sys.views WHERE object_id = OBJECT_ID(N'[dbo].[e_myWorkflowProcessModule]')) DROP VIEW [dbo].[e_myWorkflowProcessModule] GO CREATE VIEW [dbo].[e_myWorkflowProcessModule] AS -------- GO 修改存储过程 --SQL20…
1.在查询结果中显示列名:a.用as关键字:select name as '姓名' from students order by ageb.直接表示:select name '姓名' from students order by age 2.精确查找:a.用in限定范围:select * from students where native in ('湖南', '四川') b.between...and:select * from students where age between 2…