Get the App
SLTechnology News&Howtos  ›  Database  › 

Mysql number creation test

Shulou Source: shulou.com Published: 2022-06-01 11:39:31 10月02日 Update

1. Create a custom database

Create database custom

2. Create the cuser table

Create table cuser (

Id int unsigned auto_increment primary key

Account varchar (50) not null

Password varchar (20) not null

Username varchar (20) not null

Card_id varchar (20) not null

User_id varchar (30) not null

Telphone bigint (20) not null

Email varchar (50)

);

3. Download Creator sql: http://down.51cto.com/data/2334530

C:\ Users\ yuri_bai > mysql-u root-pEnter password: * Welcome to the MySQL monitor. Commands end with; or\ g.Your MySQL connection id is 8Server version: 5.7.19-log MySQL Community Server (GPL) Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.Oracle is a registered trademark of Oracle Corporation and/or itsaffiliates. Other names may be trademarks of their respectiveowners.Type 'help;' or'\ h' for help. Type'\ c'to clear the current input statement.mysql > show databases +-+ | Database | +-+ | information_schema | | custom | | mysql | | performance_schema | | sys | +-+ 5 rows in set (0.00 sec) mysql > use customDatabase changedmysql > show tables +-+ | Tables_in_custom | +-+ | cuser | +-+ 1 row in set (0.00 sec) mysql > source C:\ Users\ yuri_bai\ Desktop\ 12306.sql

Remarks: (this sql is the spare time for work these two days, sorted out) the executive attention here must be the full path.

4, sort out the data space, because it is slowly adjusted with UE, so the last column of data space is larger.

If there is a better way, please do not hesitate to give us advice.

Mysql > update cuser set email = trim (email); # remove the space Query OK of the column field content in the database, 131493 rows affected (4.06 sec) Rows matched: 131653 Changed: 131493 Warnings: 0

Tags: Data spaces database large generous comments content remarks fields method time if path adjustment test Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi Microsoft vpn Apple Shulou Tech Info