mysql 查询语句
2015-09-08 15:34
731 查看
update point set point.boundry=1 from point,b_point where point.point_x_y=b_point.point_x_y;
select count(*) from point,b_point where point.point_x_y=b_point.point_x_y;
update point left join b_point on point.point_x_y=b_point.point_x_y set point.boundry=0 where point.point_x_y=b_point.point_x_y;
选出定点表和总点表的交集
select * from b_point left join point on point.point_x_y=b_point.point_x_y;
update point set point.boundry=0 ;
from (select * from b_point left join point on point.point_x_y=b_point.point_x_y);
//清空表
truncate table point;
truncate table b_point;
truncate table quad;
select * from b_point
select count(distinct sum) from quad
select count(*) from point,b_point where point.point_x_y=b_point.point_x_y;
update point left join b_point on point.point_x_y=b_point.point_x_y set point.boundry=0 where point.point_x_y=b_point.point_x_y;
选出定点表和总点表的交集
select * from b_point left join point on point.point_x_y=b_point.point_x_y;
update point set point.boundry=0 ;
from (select * from b_point left join point on point.point_x_y=b_point.point_x_y);
//清空表
truncate table point;
truncate table b_point;
truncate table quad;
select * from b_point
select count(distinct sum) from quad
相关文章推荐
- ActiveReports如何使用MySQL数据库
- Ubuntu 安装mysql和简单操作
- Mysql innodb_flush_log_trx_commit 简单调优
- MySQL技术之旅--随意写在前面的话
- MySQL允许远程连接的设置总结
- mysql limit使用方法
- MySQL字符串函数substring:字符串截取
- MYSQL命令
- mysql主主关系配置
- MySQL索引类型&建立索引的时机&索引的不足之处
- 命令行修改MySQL数据库密码
- MySQL CMake参数说明手册
- MYSQL-统计查询
- mysqli
- 解决您配置文件中的设置 (空密码的 root) 与 MySQL 默认管理员账户对应。
- 安装hive后使用mysql作为数据库无法正常启动问题
- MyBatis+MySQL 返回插入的主键ID
- MYSQL的三种注释
- 【R】R语言windows下连接MySQL
- 一次mysql的查询索引的优化