摘要: 查询要素 查哪张表的数据 查哪些列 mysql> select name,company,salary from class where id=6;+------+---------+---------+| name | company | salary |+------+---------+---------+| 老三 | 新浪 | 6300.00 |+... 阅读全文
posted @ 2013-11-17 23:15 long896130895 阅读(192) 评论(0) 推荐(0)
摘要: mysql复习一:复习前的准备1:确认你已安装wamp2:确认你已安装ecshop,并且ecshop的数据库名为shop二 基础知识:1.数据库的连接mysql -u -p -h-u 用户名-p 密码-h host主机2:库级知识2.1 显示数据库: show databases;2.2 选择数据库: use dbname;2.3 创建数据库: create database dbname cha... 阅读全文
posted @ 2013-11-17 22:54 long896130895 阅读(181) 评论(0) 推荐(0)
摘要: lis建库 create database test ; test 代表是库名 选择库 use test ; use + 库名 建表 create table stu( id int insert 增数据 1 要往那张表添加 class 2要添加几行 (id, name ,gender,company,salary) 3分别... 阅读全文
posted @ 2013-11-17 17:09 long896130895 阅读(335) 评论(0) 推荐(0)