• sql笔试题


    笔试题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
     
    数据库中的索引又哪些?
    数据库中的表和视图查询起来的区别?

    1、视图只是一些SQL语句的集合,是查看数据表的一种方法,从安全的角度说,视图可以不给用户接触数据表,从而不知道表结构。

    2、表占用物理空间而视图不占用物理空间,视图只是逻辑概念的存在,表可以及时对它进行修改,但视图只能有创建的语句来修改。

    3、视图的建立和删除只影响视图本身,不影响对应的基本表。

    4、表是内容,视图是窗口

    5、表属于全局模式中的表,是实表;视图属于局部模式的表,是虚表。

    shell脚本中的环境变量要不要申明,注释的符号是?不用申明,注释是#号
     
  • 相关阅读:
    Nginx出现413 Request Entity Too Large错误解决方法
    Apache设置二级域名和虚拟主机
    LNMP搭建03 -- 编译安装PHP
    LNMP搭建04 -- 配置Nginx支持PHP
    LNMP搭建01 -- 编译安装MySQL 5.6.14 和 LNMP相关的区别
    LNMP搭建02 -- 编译安装Nginx
    vagrant使用小结
    LeetCode Count and Say
    基于ArcGIS Flex API实现动态标绘(1.0)
    HDU 2027 汉字统计
  • 原文地址:https://www.cnblogs.com/qiyuedetiankong/p/10781017.html
Copyright © 2020-2023  润新知