In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces the case of input data after the creation of the table by sql, which is very detailed and has a certain reference value. Friends who are interested must read it!
After sql creates a table, you can use the ALTER TABLE statement to enter data. The ALTER TABLE statement is used to add, delete, or modify columns in an existing table. If you need to add columns to the table, you can use the syntax "ALTER TABLE table_name ADD column_name...".
After sql creates a table, you can enter data using the ALTER TABLE statement, which is used to add, delete, or modify columns in an existing table.
To add columns to the table, use the following syntax:
ALTER TABLE table_nameADD column_name datatype
To delete columns from a table, use the following syntax (note that some database systems do not allow this way to delete columns from a database table):
ALTER TABLE table_nameDROP COLUMN column_name
Example:
Add a column named "DateOfBirth" to the Persons table.
ALTER TABLE PersonsADD DateOfBirth date above are all the contents of this article entitled "the case of entering data after creating a table by sql". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
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.