DataBase
hailang43
左手JAVA 右手.NET
展开
-
SQL操作全集
SQL操作全集 下列语句部分是Mssql语句,不可以在access中使用。 SQL分类: DDL—数据定义语言(CREATE,ALTER,DROP,DECLARE) DML—数据操纵语言(SELECT,DELETE,UPDATE,INSERT) DCL—数据控制语言(GRANT,REVOKE,COMMIT,ROLLBACK) 首先,简要介绍基础语句: 1、说明:创建数据库 CREATE DATAB转载 2008-05-22 09:59:00 · 485 阅读 · 0 评论 -
JAVA常用数据库的链接方法
MySQL: String Driver="com.mysql.jdbc.Driver"; //驱动程序 String URL="jdbc:mysql://localhost:3306/db_name"?useUnicode=true&characterEncoding=UTF-8; //连接的URL,db_name为数据库名,注意修改编码类型 S原创 2008-05-30 11:02:00 · 554 阅读 · 0 评论 -
.NET数据库操作集锦
The Stored ProceduresBefore you can start coding the data access logic, you need to make sure you have the set of storedprocedures you need in order to retrieve, insert, and update information. The fo原创 2008-05-30 10:19:00 · 532 阅读 · 0 评论 -
sql统计查询
select stuid as 学号,name as 姓名, sum(case when subject=语文 then score else 0 end) as 语文, sum(case when subject=数学 then score else 0 end) as 数学, sum(case when subject=英语 then score els原创 2009-06-20 23:42:00 · 982 阅读 · 0 评论