![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据库
云凌枫
这个作者很懒,什么都没留下…
展开
-
hibernate配置文件和映射文件需要注意的
1.调用无参 configure() 的时候,默认读取hibernate.cfg.xml文件, 且 hibernate.cfg.xml 文件一定要直接放到 src 文件夹下!!!, 对,直接放到 src 文件夹下,不能放到它的子目录或其它子包下!!!2.hibernate 的配置文件 hibernate.cfg.xml 中指明映射文件的 url 路径用 / 分隔目录:原创 2016-03-03 20:23:06 · 302 阅读 · 0 评论 -
DOS环境下如何设置mysql的初始密码
首先,进入mysql的bin目录下然后,用 root 权限进入 mysql ,第一次由于没有密码,直接输入:mysql -uroot 再按下enter键就能进去了接着,输入:set password =password('******');其中******就是你要设置的密码,后面的 ; 不能丢最后,输入:flush privileges;m原创 2016-02-23 21:04:25 · 963 阅读 · 0 评论 -
sql查询表中为 null 的字段
select * from tableName where 字段名 is null;原创 2016-04-20 17:20:23 · 1750 阅读 · 0 评论 -
oracle中select 1 from table是什么意思
select 1 from table 与Select * from table在用法上大同小异,具体不同分析见下文:1、select 1 from mytable;与select anycol(目的表集合中的任意一行) from mytable;与select * from mytable 作用上来说是没有差别的,都是查看是否有记录,一般是作条件用的。select 1 from 中的1是一常转载 2016-11-18 14:18:12 · 10603 阅读 · 0 评论