摘要:
视图的操作: 1.视图的创建: create view view_name as 查询语句; 2.视图的查看: show tables;// 显示所有的表和视图 show create view view_name; desc view_name; show table status from ta 阅读全文
摘要:
表的操作: 1.表的创建: create table if not exists table_name(字段定义); 例子: create table if not exists user(id int auto_increment, uname varchar(20), address varch 阅读全文
摘要:
进入mysql: mysql -hlocalhost -uroot -p; mysql -uroot -p密码; 查看帮助文档: help 查看名 database(s); 创建数据库: create database database_name; create databse if not exi 阅读全文
摘要:
生产者和消费者的实例: 商品类:/** * 商品类 * */public class Goods { final int MAX_NUMBER = 30; // 最大数量 final int MIN_NUMBER = 0; // 最小数量 private int number; public Goo 阅读全文