1、SHOW DATABASES;
CREATE TATABASE;
USE MYSQL;设定默认的数据库
SHOW TABLES;
DROP DATABASE;(慎用)
USE mydb;
CREATE TABLE tb1;
->Nmae CHAR(20);
->Age INT;
SHOW TABLES;
DESCRIPTION tb;
DESC tb1;
SELECT * FROM tb1;
INSERT INTO tb1(Name,Age) VALUES (‘jerry‘,13);
SELECT * FROM tb1;
时间: 2024-10-01 06:15:21