mysql 数据库 (基础) 笔记_MySQL
bitsCN.com
进入 安装目录.../bin/mysql.exe
cd 更换目录 dir列出当前目录所有文件
c:/vesa/.../a> 尖括号表示在c盘/的vasa/的.../的a 文件夹里面
cd空格.. 表示向上一级目录
cd空格目录名 表示进入指定目录
cd空格ted健 表示顺序查看目录名
>mysql 空格 -u用户名 -p密码 (即通过用户名 密码连数据库)
show databases; 显示所有数据库
use 数据库名; 表示进入数据库
show tables; 显示所有数据表
select * from 数据表名; 查看数据表里的数据
插入:insert into 字段名(省略不写的表示所以字段)values 值; (字段名1->值1 字段名2->值2...顺序一样个数一样)
更新:update 表名 set 字段名 = 值; (where 字段名=值 and 字段名=值)
查询:select 字段列表 from 表名;(where 字段名=值 and 字段名=值)
删除:delete from 表名;(where 字段名=值 and 字段名=值)
创建数据库:create database 数据库名;
删除列表:drop table 表名 ...;
删除数据库:drop database 数据库名;
查看表属性:describe 表名;
修改表属性:alter table 表名 modify column 字段名 类型;
修改表名:rename table 原表名 to 以后的表名;
创建数据表:create table 数据表名(项名 类型 . .,项名 类型 . .,......);
bitsCN.com
Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



The page is blank after PHP connects to MySQL, and the reason why die() function fails. When learning the connection between PHP and MySQL database, you often encounter some confusing things...

Many website developers face the problem of integrating Node.js or Python services under the LAMP architecture: the existing LAMP (Linux Apache MySQL PHP) architecture website needs...

How to share the same page on the PC and mobile side and handle cache issues? In the nginx php mysql environment built using the Baota background, how to make the PC side and...

"DebianStrings" is not a standard term, and its specific meaning is still unclear. This article cannot directly comment on its browser compatibility. However, if "DebianStrings" refers to a web application running on a Debian system, its browser compatibility depends on the technical architecture of the application itself. Most modern web applications are committed to cross-browser compatibility. This relies on following web standards and using well-compatible front-end technologies (such as HTML, CSS, JavaScript) and back-end technologies (such as PHP, Python, Node.js, etc.). To ensure that the application is compatible with multiple browsers, developers often need to conduct cross-browser testing and use responsiveness

Dockerfile Best Practice for Building LNMP Environment Learning During Docker, many developers try to build their own LNMP (Linux, Nginx, MySQL, PHP)...

Comparison of Redis queues and MySQL stability: Why is Redis prone to data loss? In the development environment, using PHP7.2 and ThinkPHP frameworks, we often face the choice of cooperation...

Using Django and MySQL to process large data volumes When using Django and MySQL databases, if your data volume reaches hundreds of thousands to one or two million...

Under the BeegoORM framework, how to specify the database associated with the model? Many Beego projects require multiple databases to be operated simultaneously. When using Beego...
