随笔分类 - Database
数据库
摘要:alter table 表名 change id id int AUTO_INCREMENT 注:id必须为主键时才可以这样使用
阅读全文
摘要:右键以管理员身份运行oradba.exe即可
阅读全文
摘要:1. 关闭正在运行的MySQL服务2. 打开DOS窗口,转到mysql\bin目录3. 输入mysqld --skip-grant-tables 回车 --skip-grant-tables 的意思是启动MySQL服务的时候跳过权限表认证4. 再开一个DOS窗口(因为刚才那个DOS窗口已经不能动了)
阅读全文
摘要:<!-- MySQL自动生成主键--><insert id="insert" useGeneratedKeys="true" keyProperty="id"> INSERT INTO t_car(id,name) VALUES (#{id},#{name})</insert>
阅读全文
摘要:driverClassName=com.mysql.jdbc.Driver // 不多解释,这是基本的驱动加载 url=jdbc:mysql://localhost/db_student // 驱动注册 username=root //要连接的数据库用户名 password=root // 要连接的
阅读全文
摘要:mysql 出现Host 'localhost' is not allowed to connect to this MySQL server 错误。 解决办法: C:\Program Files\MySQL\MySQL Server 5.5\my.ini 自己的安装目录 在[mysqld]下加下面
阅读全文
摘要:如果用pl/sql developer登录时报这样的错误,但sqlplus命令行是可以正常登录的,则问题出在pl/sql developer工具上,做如下配置,即可
阅读全文
摘要:Oracle: DELETE * FROM 表; OK DELETE FROM 表; OK DELETE 表1,表2 FROM 表1,表2; WRONG MySQL: DELETE * FROM 表; WRONG DELETE FROM 表; OK DELETE 表1,表2 FROM 表1,表2;
阅读全文