我们知道mysql的使用上有很多讲究
比如一般字段我们要设置为非null
可是最近在使用的时候
出现了提示`MYSQL插入报错:SQLSTATE[HY000]: General error: 1364 Field 'xxxxx' doesn't have a default value`
百度了很久
最近找到解决办法
> >查看详情
经常需要对`mysql`进行查询,
比如 `in`条件
`select *from user where id in(1,3,2,8);`
但是有一个要求,返回的内容也要按照id内容1,3,2,8排序
如何实现呢?
```
select * from user where id in(1,3,2,8) order by fie >查看详情
我们经常需要备份数据库,导出数据库表结构
我们会使用mysqldump
由于数据库表太多,我们可能在导出的时候想排除指定的表,有没有办法呢
mysql> use mytest
Reading table information for completion of table and column names
You can turn o >查看详情