zoukankan      html  css  js  c++  java
  • 牛客SQL题解-创建一个actor_name表,并且将actor表中的所有first_name以及last_name导入该表

    题目描述

    对于如下表actor,其对应的数据为:
    actor_idfirst_namelast_namelast_update
    1 PENELOPE GUINESS 2006-02-15 12:34:33
    2 NICK WAHLBERG 2006-02-15 12:34:33

    请你创建一个actor_name表,并且将actor表中的所有first_name以及last_name导入该表.
    actor_name表结构如下:
    列表类型是否为NULL含义
    first_name varchar(45) not null 名字
    last_name varchar(45) not null 姓氏

    答案详解

    create table IF NOT EXISTS actor_name(
        first_name varchar(45) not null,
        last_name varchar(45) not null
    );
    insert into actor_name select first_name,last_name from actor;
    

      

    题目描述

    对于如下表actor,其对应的数据为:
    actor_idfirst_namelast_namelast_update
    1 PENELOPE GUINESS 2006-02-15 12:34:33
    2 NICK WAHLBERG 2006-02-15 12:34:33

    请你创建一个actor_name表,并且将actor表中的所有first_name以及last_name导入该表.
    actor_name表结构如下:
    列表类型是否为NULL含义
    first_name varchar(45) not null 名字
    last_name varchar(45) not null 姓氏
  • 相关阅读:
    将Temporary文件夹里的Logo文件转移到Logo文件夹
    VS2013密匙
    Android SDK Tools 更新
    安装 phoneGap
    动态创建的DOM元素进行事件绑定
    不用安装Oracle_Client就能使用PLSQL_Developer
    POI 导出Excel
    mysql 通过IP连接
    微信 xml 转 Map
    uploadify springMVC
  • 原文地址:https://www.cnblogs.com/Bluebells/p/14517835.html
Copyright © 2011-2022 走看看