2019年9月20日

sql常见面试(2)

摘要: 1.sql 删除表中重复数据保留一条 1)删除表中多余的重复记录,重复记录是根据单个字段(peopleId)来判断,只留有rowid最小的记录 delete from people where peopleName in (select peopleName from people group by 阅读全文

posted @ 2019-09-20 14:35 有酒有故事 阅读(241) 评论(0) 推荐(0) 编辑

常用面试sql(1)

摘要: 1:update qr_user_info set score =score+50 where level=3 2:delete from qr_user_info where level is null; 3:第一种:select * from qr_order_info where user_i 阅读全文

posted @ 2019-09-20 14:13 有酒有故事 阅读(192) 评论(0) 推荐(0) 编辑

oracle判断是否包含字符串的方法

摘要: 1.contains,contains用法如下: select * from students where contains(address, ‘beijing’) 但是,使用contains谓词有个条件,那就是列要建立索引,也就是说如果上面语句中students表的address列没有建立索引,那 阅读全文

posted @ 2019-09-20 13:51 有酒有故事 阅读(58151) 评论(0) 推荐(0) 编辑

导航