一个简单的创建表的代码DROP database IF exists reg_login;CREATE database reg_login;use reg_login--用户表create table user_table( user_id int(11) auto_increment, u...
分类:
数据库 时间:
2014-06-28 16:47:27
阅读次数:
231
判断数据库if exists(select 1 from sys.databases where name=N'[数据库名]')判断表if exists (select 1 from dbo.sysobjects where id = object_id(N'[dbo].[表名]') and obj...
分类:
数据库 时间:
2014-06-28 12:39:23
阅读次数:
251
apt-get install eclipse eclipse-cdt eclipse-jdt# don't include eclipse if you have it already after a successful install, do the following at termin.....
分类:
系统相关 时间:
2014-06-28 11:24:15
阅读次数:
317
一、注释: 1.单行注释#开始到行结束。 2.多行注释/* ... */。二、数据库存在性判断: 1.例如:如果数据库存在则删除 drop database if exists 数据库名; 2.例如:如果数据库不存在则创建 create database if not e...
分类:
数据库 时间:
2014-06-25 23:55:37
阅读次数:
329
1 判断数据库是否存在if exists (select * from sys.databases where name = '数据库名')drop database [数据库名]2 判断表是否存在if exists (select * from sysobjects where id = obje...
分类:
数据库 时间:
2014-06-24 10:20:17
阅读次数:
248
今天在进行代码检查的时候出现下面的异常:1 type parameters of T cannot be determined; no unique maximal instance exists for type variable T with upper bounds int,java.lang...
分类:
编程语言 时间:
2014-06-23 08:05:13
阅读次数:
381
Several ports (8005, 8080, 8009) required by Tomcat v6.0 Server at localhost are already in use. The server may already be running in another process,...
分类:
其他好文 时间:
2014-06-23 07:08:50
阅读次数:
246
在编写SQL语句时,如果要实现一张表有而另外一张表没有的数据时, 通常第一直觉的写法是:
select * from table1 where table1.id not in(select id from table2)
这种写法虽然看起来很直观,但是执行的效率会非常低下,在数据量很大的时候效果尤其明显,我们推荐使用not exists或左连接来代替。
select a.* from ta...
分类:
数据库 时间:
2014-06-22 16:36:50
阅读次数:
244
Spring为了更好的满足各种底层资源的访问需求。设计了一个Resource接口,提供了更强的访问底层资源的能力。Spring框架使用Resource装载各种资源,包括配置文件资源、国际化属性文件资源等。一、Resource接口的主要方法有: boolean exists():资源是否存在。 b.....
分类:
编程语言 时间:
2014-06-21 06:47:59
阅读次数:
261
出现这种情况主要是因为上次用SVN提交代码的时候没有提交完成就进行了中断 取消的操作。控制台打印报错信息: Attempted to lock an already-locked dirsvn: Commit failed (details follow):可以右键单击项目,然后选中以下选项 刷新清...
分类:
其他好文 时间:
2014-06-20 16:06:34
阅读次数:
243