shop_create_sql.sql 722 B

12345678910111213141516171819202122
  1. drop database if exists shop;
  2. create database shop default charset utf8;
  3. use shop;
  4. drop table if exists tb_goods;
  5. create table tb_goods
  6. (
  7. gid int not null auto_increment,
  8. gname varchar(50) not null,
  9. gprice decimal(10,2) not null,
  10. gimage varchar(255),
  11. primary key (gid)
  12. );
  13. insert into tb_goods values
  14. (default, '乐事(Lay’s)无限薯片', 8.2, 'images/lay.jpg'),
  15. (default, '旺旺 仙贝 加量装 540g', 18.5, 'images/wang.jpg'),
  16. (default, '多儿比(Dolbee)黄桃水果罐头', 6.8, 'images/dolbee.jpg'),
  17. (default, '王致和 精制料酒 500ml', 7.9, 'images/wine.jpg'),
  18. (default, '陈克明 面条 鸡蛋龙须挂面', 1.0, 'images/noodle.jpg'),
  19. (default, '鲁花 菜籽油 4L', 69.9, 'images/oil.jpg');