摘要:
1、osql /? 显示所有sql 的提示信息2、net start mssqlserver 启动sql 服务3、osql -s localhost -u sa -p sa 连接数据库 ,4、select name from sysdatabases go 查询所有的数据库5、 use test go 使用test数据库select name from sysobjects where type='u' go 显示该数据库中所有的表;6、创建数据库if exists(select * from sysdatabase where name='aa')create 阅读全文
posted @ 2013-05-29 11:47
希望的种子
阅读(788)
评论(0)
推荐(0)
摘要:
cmd 进入运行界面;net start mysql 启动sql服务cd mysql-bin>mysql -u root -ppassword root 连接数据库;show databases 显示mysql中所有的数据库;user database 使用当前数据库;show tables 显示当前库中所有的表;create database aa;创建数据库aa;cartae table bb(id int primary key auto_increment,username varchar(50),userpass varchar(50));创建表;insert into bb( 阅读全文
posted @ 2013-05-29 11:12
希望的种子
阅读(428)
评论(2)
推荐(0)

浙公网安备 33010602011771号