sql笔试题
2024-10-07 10:06:23
笔试题1:
1、select * from tablex where name = "张*" order by age 默认升序
select * from tablex where name contains ”张“ order by age desc 降序
2 select name from tablex ,tabley where tablex.code=tabley.code
and class="计算机" and score<60;
3 select name ,class,score from tablex ,tabley where tablex.code=tabley.code
select name ,class,score from tablex inner join tabley on tablex.code=tabley.code
4 select name ,class,score from tablex lift join tabley on tablex.code=tabley.code
5 insert into tablex(code,name,age)values("97005","赵六",“20”)
6 update tablex set age =21 where code =97004
7 delete * from tablex where code not in (select code form tabley where score is null ) # not in 语句容易出bug
最新文章
- 3ds max旋转简化后模型
- 分表的一个记录---Ruby
- TCP重传率高的监控
- 匹配字符串的KMP算法
- centos6 pyotp bug修复
- iOS七大手势识别
- BinaryWrite方法输出验证码
- WPF 本周、本月、本季、本年的第一天与最后一天取法
- ExtJS笔记--applyTo和renderTo的差别
- WIN32_FIND_DATA 循环获取文件大小BUG
- UNITY3D MAC版本号破解
- HMC5883L地磁传感器驱动
- 结队编程-基于gui的四则运算生成器
- Node.js 系统
- Linux多线程实践(10) --使用 C++11 编写 Linux 多线程程序
- LeetCode之“链表”:Reverse Linked List &;&; Reverse Linked List II
- C# Asp.net中简单操作MongoDB数据库(一)
- go等待N个线程完成操作总结
- 【blog】mysql字段类型datetime和timestamp的区别
- LeetCode--434--字符串中的单词数