![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mysql
鹿海园
为自己而奋斗
展开
-
使用SQL语句完成下列题目
1、查询图书馆中所有图书的详细信息。(BookInfo表) 1 select * from bookinfo; 2、查询所有图书的图书编号、图书名称和图书价格。 1 select b_id 编号,b_name 名称,b_price 价格 from bookinfo 3、 查询所有图书的图书编号、...转载 2018-11-07 18:28:07 · 21550 阅读 · 0 评论 -
mysql修改用户密码的方法及命令
方法1: 用SET PASSWORD命令 首先登录MySQL。 格式:mysql> set password for 用户名@localhost = password('新密码'); 例子:mysql> set password for root@localhost = password('123'); 方法2:用mysqladmin 格式:mysqladmin -u用户...转载 2018-10-19 14:46:06 · 492 阅读 · 0 评论 -
mysql查看表结构信息需求背景是给一个表名然后给出相应的表结构信息及索引信息 常用的命令有如下: 1. desc tableName; desc employees.employees; 2. sh
需求背景是给一个表名然后给出相应的表结构信息及索引信息常用的命令有如下:1. desc tableName; desc employees.employees;2. show columns from tableName; show COLUMNS from employees.employees;3. describe tableName; DESCRIBE employees.emp...转载 2018-10-20 15:52:59 · 439 阅读 · 0 评论 -
mysql查看表结构信息
需求背景是给一个表名然后给出相应的表结构信息及索引信息常用的命令有如下:1. desc tableName; desc employees.employees;2. show columns from tableName; show COLUMNS from employees.employees;3. describe tableName; DESCRIBE employees.emp...转载 2018-10-20 17:36:37 · 9329 阅读 · 0 评论 -
Eclipse中创建java类的时候自动设置作者信息和创建时间
window—>preferences—>Java—>Code Stype—>Code Templates Code—>New Java files 点击Edit ${filecomment}${package_declaration}/*** @author GK* @version 创建时间:${date} ${time}* @Clas...转载 2018-10-21 17:44:09 · 809 阅读 · 0 评论 -
Navicat for mysql 显示中文乱码问题
现象使用navicat for mysql 设计数据库后,再使用python、Eclipse访问mysql,因为python、Eclipse都设置为utf-8编码,而访问查询出来的数据为中文乱码。处理过程1.查看数据库编码为" utf8 -- UTF-8 Unicode",也就是说数据库字符集没有问题,初步推测为客户端的问题2.在navicat里右击连接,选择连接属性,切换到...转载 2018-11-24 18:10:55 · 237 阅读 · 0 评论