Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Mysql number creation test

2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

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

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.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report