一.查询数值型数据: SELECT * FROM tb_name WHERE sum > 100; 查询谓词:>,=,<,<>,!=,!>,!<,=>,=< 二.查询字符串 SELECT * FROM tb_stu WHERE sname = '小刘' SELECT * FROM tb_stu WHERE sname like '刘%' SELECT * FROM tb_stu WHERE sname like '%程序员' SELECT * FROM…
工作常用的linux/mysql/php/工具命令: 1. tar备份目录 tar zcvf ****.tar.gz ****/ tar 备份跳过目录 tar --exclude=test1 3. scp 目录 scp -rp *** root@B_ip:***/ 4. 新建一个数据库账户 GRANT ALL PRIVILEGES ON test.* TO 'test'@'ip' IDENTIFIED BY '******'; 该ip 为允许访问该数据库的服务器ip 5. 清除.svn 目录 #…
mysql学习笔记-常用命令 常用sql: SHOW VARIABLES LIKE 'character%';查看字符集SHOW VARIABLES LIKE 'collation_%';show engines;查看引擎show databases; 查看数据库 show tables; desc table_name; GRANT ALL PRIVILEGES ON *.* TO 'guming'@'localhost' IDENTIFIED BY 'guming' WITH GRANT O…