INVITE      Via:       Max-Forwards:       To:      
 From:       Call-ID:       CSeq:       Contact:       Content-Type:       
Content-Length:
                            
                            
                                分类:
其他好文   时间:
2014-05-04 12:34:06   
                                阅读次数:
292
                             
                    
                        
                            
                            
                                描述:使用Hibernate登陆验证时故意输入没有的用户名,所产生的错误。错误代码:/* * 
根据客户的用户名查找客户信息 */	@Override	public User getUserByUserName(String userName) { 
String hql="from User ...
                            
                            
                                分类:
编程语言   时间:
2014-05-04 10:57:50   
                                阅读次数:
372
                             
                    
                        
                            
                            
                                题目描述:1038. Recover the Smallest Number 
(30)Given a collection of number segments, you are supposed to recover the 
smallest number from them. For examp...
                            
                            
                                分类:
其他好文   时间:
2014-05-04 10:49:34   
                                阅读次数:
308
                             
                    
                        
                            
                            
                                If you have installed YouTrack from EXE 
Distribution, then the best way to change the database location is by specifying 
it via JVM property.Stop curr...
                            
                            
                                分类:
数据库   时间:
2014-05-03 23:30:08   
                                阅读次数:
505
                             
                    
                        
                            
                            
                                什么是JDBC,在什么时候会用到它?JDBC的全称是Java DataBase 
Connection,也就是Java数据库连接,我们可以用它来操作关系型数据库。JDBC接口及相关类在java.sql包和javax.sql包里。我们可以用它来连接数据库,执行SQL查询,存储过程,并处理返回的结果。JD...
                            
                            
                                分类:
数据库   时间:
2014-05-03 23:18:31   
                                阅读次数:
766
                             
                    
                        
                            
                            
                                DDL :Data Definition Language (DDL) statements 
are used to define the database structure or schema. Some examples:CREATE - to 
create objects in the da...
                            
                            
                                分类:
数据库   时间:
2014-05-03 22:21:22   
                                阅读次数:
410
                             
                    
                        
                            
                            
                                题目:
Given a string S and a string T, count the number of distinct subsequences of T in S.
A subsequence of a string is a new string which is formed from the original string by deleting some (c...
                            
                            
                                分类:
其他好文   时间:
2014-05-03 21:48:19   
                                阅读次数:
252
                             
                    
                        
                            
                            
                                创建数据库:
CREATE DATABASE stefan;
删除数据库:
DROP DATABASE stefan;
重命名数据库:
重命名数据库没有直接的办法。
已经不再使用的方法:
RENAME DATABASE stefan TO LCDB;
创建表格语法:
CREATE TABLE 表名称
(
列名称1 数据类型,
列名称2 数据类型,
列...
                            
                            
                                分类:
数据库   时间:
2014-05-03 21:47:22   
                                阅读次数:
470
                             
                    
                        
                            
                            
                                A Star not a Tree?
Time Limit: 1000MS
 
Memory Limit: 65536K
Total Submissions: 3272
 
Accepted: 1664
Description
Luke wants to upgrade his home computer network from 10mbs...
                            
                            
                                分类:
其他好文   时间:
2014-05-03 21:31:49   
                                阅读次数:
417
                             
                    
                        
                            
                            
                                1、能用DISTINCT的就不用GROUP BY 
  SELECT OrderID FROM Details WHERE UnitPrice > 10 GROUP BY OrderID 
  可改为:  SELECT DISTINCT OrderID FROM Details WHERE UnitPrice > 10 
2.能用UNION ALL就不要用UNION  
  UNION A...
                            
                            
                                分类:
数据库   时间:
2014-05-03 21:31:24   
                                阅读次数:
342