--查找 SELECT * from users; --插入 insert into users values(3,'bb','25','2016-11-29') --更新 update users set age=24 where id=1; --删除 delete from users where id=1; --LIMIT select * from users limit 1; --limit偏移 offset 第一个数字表示取几个,第二个数字表示从第几个开始取,与MysqL相反 select * from users limit 2 OFFSET 1; --over select *,"row_number"() OVER(order by id desc) a from users ; --patition,在分区之上 select avg(age) over (PARTITION by name)from users; --group BY select name,"count"(*) from users group by name; --HAVING select name,"count"(*) from users group by name HAVING "count"(*)>1; --like select * from users where name like '%a%';
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。