上一页 1 2 3 4 5 6 7 8 9 ··· 16 下一页
摘要: 如 <q>sasas<w>eqwe</w>ddas</q> 阅读全文
posted @ 2019-08-19 14:59 黑魔法os 阅读(380) 评论(0) 推荐(0) 编辑
摘要: package com.people.xmlToSql; import java.io.File; import java.io.IOException; import java.io.StringWriter; import org.jdom.Document; import org.jdom.input.SAXBuilder; import org.jdom.output.Format; im 阅读全文
posted @ 2019-08-19 14:55 黑魔法os 阅读(2040) 评论(0) 推荐(0) 编辑
摘要: SQLQuery countSqlQuery = userDAO.createSQLQuery("select count(id) from fhcb_08_tbl_user"); BigInteger totalCount=null; if(databaseutil.getValue("database").equalsIgnoreCase("s... 阅读全文
posted @ 2019-08-05 14:48 黑魔法os 阅读(1031) 评论(0) 推荐(0) 编辑
摘要: 希望在select语句中使用自己定义的函数,并且这个函数除了返回特定的值之外,还执行update,insert,delete等操作。 对数据库有写操作(update,insert,delete,crate,alert,commit)的函数是无法简单的用SQL来调用的。 用 自治事务pragma au 阅读全文
posted @ 2019-08-04 11:03 黑魔法os 阅读(512) 评论(0) 推荐(0) 编辑
摘要: if(databaseutil.getValue("database").equalsIgnoreCase("sqlserver")){ list =categoryFLDao.findBySQL("select id,substring(full_name,6,datalength(full_name)-6) from fhcb_08_tb... 阅读全文
posted @ 2019-08-01 12:24 黑魔法os 阅读(994) 评论(0) 推荐(0) 编辑
摘要: 要用datetime2(7)这种类型!将7改为3就行了 阅读全文
posted @ 2019-07-31 23:29 黑魔法os 阅读(1399) 评论(0) 推荐(0) 编辑
摘要: charindex(',' + ' test '+ ',' , ',' + test2+ ',')>0 阅读全文
posted @ 2019-07-30 11:04 黑魔法os 阅读(3167) 评论(0) 推荐(0) 编辑
摘要: 一.不含参数的存储过程 1.没有返回值: 创建语句: CREATE PROCEDURE dbo.ProTest AS DECLARE @test int SET @test = 1 Go 执行SQL语句: EXEC dbo.ProTest 消息:命令已成功完成。结果:无 2.有返回值(使用select): 创建语句: CREATE PROCEDURE dbo.Pro... 阅读全文
posted @ 2019-07-30 10:18 黑魔法os 阅读(336) 评论(0) 推荐(0) 编辑
摘要: public class MySQLServerDialect extends SQLServerDialect { public MySQLServerDialect() { super(); registerHibernateType(1, "string"); registerHibernateType(-9, "string"); ... 阅读全文
posted @ 2019-07-29 15:15 黑魔法os 阅读(381) 评论(0) 推荐(0) 编辑
摘要: SELECT orderid, orderdate, custid, empid FROM Sales.Orders ORDER BY orderdate, orderid OFFSET 600 ROWS FETCH NEXT 25 ROWS ONLY; 此查询按orderdate、orderid顺 阅读全文
posted @ 2019-07-27 18:14 黑魔法os 阅读(352) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 16 下一页