数据库核心の增删改查
数据库核心の增删改查
创建数据库: create database myFirstDatabase 删除数据库: Drop database myFirstDatabase Drop database myFirstDatebase 注意事项: 创建表: create table name_of_table ( name_of_column_datatype ) 更改现有表: 添加一个新列: alter table name_of_table add name_of_field data_type 删除现有列: alter table name_of_table drop column name_of_field 添加一个新列 create table name_of_table ( name_of_column column_datatype ) 删除一个表: drop table name_of_table 插入新数据: insert into table_name(column_names) values(data-values) 查看数据: select * from gategory 更新数据库: update table_name set column_name=value where condition 删除字句: delete from menberdetails; delete from memberdetails where memberid=3