
DB
shoppingbill
这个作者很懒,什么都没留下…
展开
-
找回丢失的MYSQL 密码
今天想在自己的机器做个下练习,晕的是我以前安装MYSQL密码忘记了.呵呵.于是Google下.呵呵,成功了.真是让人欣慰啊. Step 1: 停止MYSQL服务. Step 2: 在C:\下建立一个文件叫mysql-init.txt. 文件中填入 SET PASSWORD FOR 'root'@'localhost' = PASSWORD('MyNewPassword')...2009-10-14 09:46:18 · 105 阅读 · 0 评论 -
删除数据库中重复的记录
删除数据库中重复的记录: 查出不重复的记录插到temp 表中. select distinct * into #temp from tableName 删除数据库中所有的记录 delete from tableName 查询所有的记录再插到tableName表中 select * into #tableName from temp ...2009-10-20 15:40:31 · 117 阅读 · 0 评论 -
sql 几句
[code="sql"] update table_name set colname=""; delete column all the content; alter table table_name drop column column_name #delete the field in the table# alter table table_name add column co...2009-07-31 09:49:49 · 73 阅读 · 0 评论