In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
1. Can the following CREATE TABLE command be executed properly? What changes need to be made? Are there any restrictions on execution in different databases (MySQL, Oracle, SQL Server)?
Do not as:
Middle_name null
2. Can I delete a field from the table?
Can alter drop coloum??
3. What statement should be used to create a primary key constraint in the previous table employee _ TBL?
Alter table EMPLOYEE_TBL add constraint emp_pk primary key (id)
4. In order for the MIDDLE_NAME field in the previous table employee _ TBL to accept null values, what statement should be used?
Alter table EMPLOYEE_TBL modify MIDDLE_NAME varchar2 (20) null
5. What statement should be used so that the personnel records added in the previous table EMPLOYEE_TBL can only be located in New York State ('NY')?
Alter table EMPLOYEE_TBL add check (state='NY')
6. To add an auto-increment field named EMPID to the previous table employee _ TBL, what statement should be used to match the syntax structure of both MySQL and SQL Server?
Alter table EMPLOYEE_TBL add coloum EMPID int auto_increment
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.