久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長(zhǎng)資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      mysql小練習(xí):如何查詢(xún)表中倒數(shù)第三日的全部數(shù)據(jù)

      查詢(xún)員工表倒數(shù)第三入職日期的所有員工,要考慮到有同一天入職的員工,所以使用去重先查出倒數(shù)第三日期,再使用這個(gè)日期去查詢(xún)所有相等的員工信息

      SELECT     *FROM     `employees`WHERE     `hire_date` = (         SELECT DISTINCT             `hire_date`         FROM             `employees`         ORDER BY             `hire_date` DESC         LIMIT 2,         1)

      CREATE

      drop table if exists `employees`;CREATE TABLE `employees` (`emp_no` int(11) NOT NULL,`birth_date` date NOT NULL,`first_name` varchar(14) NOT NULL,`last_name` varchar(16) NOT NULL,`gender` char(1) NOT NULL,`hire_date` date NOT NULL,)

      INSERT

      INSERT INTO `employees` (     `emp_no`,     `birth_date`,     `first_name`,     `last_name`,     `gender`,     `hire_date`)VALUES     (         1,         '2021-08-04',         'Georgi',         'Facello',         'M',         '1980-06-21'     );INSERT INTO `employees` (     `emp_no`,     `birth_date`,     `first_name`,     `last_name`,     `gender`,     `hire_date`)VALUES     (         2,         '2021-08-20',         'Bezalel',         'Simnel',         'F',         '1985-11-21'     );INSERT INTO `employees` (     `emp_no`,     `birth_date`,     `first_name`,     `last_name`,     `gender`,     `hire_date`)VALUES     (         3,         '2021-08-20',         'Parto',         'Bamford',         'M',         '1986-08-28'     );INSERT INTO `employees` (     `emp_no`,     `birth_date`,     `first_name`,     `last_name`,     `gender`,     `hire_date`)VALUES     (         4,         '2021-08-20',         'Chirstian',         'Koblick',         'M',         '1986-12-01'     );

      推薦學(xué)習(xí):《mysql視頻教程》

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號(hào)-2    滬公網(wǎng)安備31011702889846號(hào)