Saesrpg - Cập nhật nhiều tin hay nhất hiện nay
  • Home
  • Máy Tính
  • Điện Thoại
  • Công Nghệ
No Result
View All Result
  • Home
  • Máy Tính
  • Điện Thoại
  • Công Nghệ
No Result
View All Result
Saesrpg - Cập nhật nhiều tin hay nhất hiện nay
No Result
View All Result
Home Giải Trí

MySQL: How to select and change database and show tables in mysql

admin by admin
July 9, 2020
in Giải Trí
0
MySQL: How to select and change database and show tables in mysql



MySQL: How to select and change database and show tables in mysql

To login : mysql -uusername -ppassword
Show databases: show databases;
show tables: show tables;

To see which database you are using currently : select database() from dual

Show all databases: show databases;

Access database: mysql -u [username] -p [database] (will prompt for password)

Create new database: create database [database];

Select database: use [database];

Determine what database is in use: select database();

Show all tables: show tables;

Show table structure: describe [table];

List all indexes on a table: show index from [table];

Create new table with columns: CREATE TABLE [table] ([column] VARCHAR(120), [another-column] DATETIME);

Adding a column: ALTER TABLE [table] ADD COLUMN [column] VARCHAR(120);

Adding a column with an unique, auto-incrementing ID: ALTER TABLE [table] ADD COLUMN [column] int NOT NULL AUTO_INCREMENT PRIMARY KEY;

Inserting a record: INSERT INTO [table] ([column], [column]) VALUES (‘[value]’, [value]’);

MySQL function for datetime input: NOW()

Selecting records: SELECT * FROM [table];

Explain records: EXPLAIN SELECT * FROM [table];

Selecting parts of records: SELECT [column], [another-column] FROM [table];

Counting records: SELECT COUNT([column]) FROM [table];

My website:

Nguồn: https://saesrpg.net/

Xem thêm bài viết khác: https://saesrpg.net/giai-tri/

Xem thêm Bài Viết:

  • TRÒ CHƠI "XOẮN NÃO" DỄ QUẠO NHẤT VỤ TRỤ | Nabee TV
  • Conversation with foreigners in English | Learn English for all levels
  • Cố Chấp – Về Nơi Đâu (Phần 1) – TraCy Thảo My [ Official Music Video ]
  • Học trực tuyến trên truyền hình MyTV: Giải pháp tối ưu mùa Covid-19
  • Hướng dẫn sử dụng tính năng Điều khiển tivi (Remote Controller) trên MyTV và MyTV Net
Previous Post

Hình Nền Hoa Đẹp Full HD Cho Điện Thoại

Next Post

Cơm Sườn Chiên - Cách Ướp Sườn Chiên ngon - Món Ăn Ngon Mỗi Ngày

Next Post
Cơm Sườn Chiên – Cách Ướp Sườn Chiên ngon – Món Ăn Ngon Mỗi Ngày

Cơm Sườn Chiên - Cách Ướp Sườn Chiên ngon - Món Ăn Ngon Mỗi Ngày

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Xem Thêm

Galaxy S8 Plus Hàn 2 sim GIÁ SẮP CHẠM ĐÁY !

Galaxy S8 Plus Hàn 2 sim GIÁ SẮP CHẠM ĐÁY !

July 2, 2020
RẺ nhưng cẩn thận. Hướng dẫn test và mua Samsung Galaxy S8, S8 Plus Cũ.

RẺ nhưng cẩn thận. Hướng dẫn test và mua Samsung Galaxy S8, S8 Plus Cũ.

July 2, 2020
Schannel – Trên tay Galaxy S8 tại Việt Nam: Smartphone đẹp nhất hiện nay!

Schannel – Trên tay Galaxy S8 tại Việt Nam: Smartphone đẹp nhất hiện nay!

July 2, 2020
Đừng vội mua Galaxy S8+ Singapore hay S8+ Đài Loan khi bạn chưa xem Clip này, S8 plus Đài Loan

Đừng vội mua Galaxy S8+ Singapore hay S8+ Đài Loan khi bạn chưa xem Clip này, S8 plus Đài Loan

July 2, 2020
AI THỪA TIỀN KHÔNG NÊN XEM, Galaxy S8 Plus Singapore Những lý do khiến bạn nhất định nên mua

AI THỪA TIỀN KHÔNG NÊN XEM, Galaxy S8 Plus Singapore Những lý do khiến bạn nhất định nên mua

July 2, 2020
Tại sao nên mua Samsung Galaxy S8 xách tay hơn hàng chính hãng?

Tại sao nên mua Samsung Galaxy S8 xách tay hơn hàng chính hãng?

July 2, 2020

saesrpg-logo

Saesrpg.net – Cập nhật nhiều tin hay nhất hiện nay, tin ẩm thực với nhiều công thức nấu ăn ngon, tin giải trí âm nhạc, và chuyên mục về công nghệ tổng hợp hay

 

  • Chính Sách Bảo Mật
  • Liên Hệ

© 2022 JNews - Premium WordPress news & magazine theme by Jegtheme.

No Result
View All Result
  • Home
  • Máy Tính
  • Điện Thoại
  • Công Nghệ

© 2022 JNews - Premium WordPress news & magazine theme by Jegtheme.