随笔分类 - mysql
摘要:SELECT w.company, COUNT(DISTINCT d.RFID_ID) AS total_unique_checkins -- 对每个公司,计算不同RFID_ID的打卡次数 FROM t_worker w JOIN t_rfid r ON w.signNum = r.num1 JOI
阅读全文
摘要:查看mysql被那些ip地址连接 mysql> select SUBSTRING_INDEX(host,':',1) as ip , count(*) from information_schema.processlist group by ip; + + + | ip | count(*) | +
阅读全文
摘要:ubuntu qt5 编译libqsqlmysql.so 首先确保已经安装了mysql, 然后打开 /opt/Qt5.12.0/5.12.0/Src/qtbase/src/plugins/sqldrivers/mysql 目录查看是否存在 如果存在,进行libmysql.so文件的编译 root@l
阅读全文
摘要:Qt mysql 确保mysql已经安装 luo@luo-ThinkPad-W540:~$ luo@luo-ThinkPad-W540:~$ whereis mysql.h mysql: /usr/bin/mysql /usr/lib/mysql /etc/mysql /usr/include/my
阅读全文
摘要:update 20210406 set recordTime=date_add(recordTime,INTERVAL -5 hour) where id>2; update 20210406 set recordTime=date_add(recordTime,INTERVAL -5 minute
阅读全文
摘要:mysql各种类型的字段 /* Navicat MySQL Data Transfer Source Server : MySQL_localhost_2020 Source Server Version : 50717 Source Host : localhost:3306 Source Dat
阅读全文
摘要:运行日志 result: 0x1ea9c7a0e80 "SELECT TB.TABLE_SCHEMA,TB.TABLE_NAME,TB.TABLE_COMMENT FROM INFORMATION_SCHEMA.TABLES TB Where TB.TABLE_SCHEMA = 'sf'" resu
阅读全文
摘要:查询某个数据库中所有的表以及表的字段 SELECT TB.TABLE_SCHEMA, -- 模式 TB.TABLE_NAME, -- 表名 TB.TABLE_COMMENT, -- 表名注释 COL.COLUMN_NAME, -- 字段名 COL.COLUMN_TYPE, -- 字段类型 COL.C
阅读全文
摘要:和普通的修改密码不太一样 ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right sy
阅读全文
摘要:mysqldump -u root -p mask_rcnn_realsense > /home/luo/mask_rcnn_realsense1.sql
阅读全文
摘要:参考: https://blog.csdn.net/kelay06/article/details/60870138 https://blog.csdn.net/itmr_liu/article/details/80851266 Mysql5.7插入中文乱码,通过在命令行修改发现不行,每次数据库重启
阅读全文
摘要:update t_news inner join (select readCount from t_news t2 where t2.id=1) t1 set t_news.readCount = t1.readCount+1 where t_news.id=1;
阅读全文
摘要:1:打开命令终端:vim /etc/mysql/my.cnf 并找到bind-address = 127.0.0.1这行 注释掉这行,如:#bind-address = 127.0.0.1,即在前面加#号,该作用就是允许任意IP访问; 重启 MySQL:sudo /etc/init.d/mysql
阅读全文
摘要:1、删除 mysql1 sudo apt-get autoremove --purge mysql-server-5.0 2 sudo apt-get remove mysql-server 3 sudo apt-get autoremove mysql-server 4 sudo apt-get
阅读全文
摘要:2.继续执行后,需要设定MySQL密码。 3.再次输入密码。 4.之后就安装成功了,输入mysql -u root -p进行登陆。 如果已经出现如上界面,那么mysql就可使用了 DROP TABLE IF EXISTS `t_org`;CREATE TABLE `t_org` ( `id` int
阅读全文
摘要:#将ibatis log4j运行级别调到DEBUG可以在控制台打印出ibatis运行的sql语句 log4j.rootLogger=debug,stdout,logfile### 把日志信息输出到控制台 ###log4j.appender.stdout=org.apache.log4j.Consol
阅读全文