Collections:
Create a Test Table with Test Data in MySQL
How To Create a Testing Table with Test Data in MySQL?
✍: FYIcenter.com
If you want to follow the tutorial exercises presented in this collection, you need to create a testing table and insert some test data, as shown in the following sample script:
mysql> CREATE TABLE fyi_links (id INTEGER PRIMARY KEY,
url VARCHAR(80) NOT NULL,
notes VARCHAR(1024),
counts INTEGER,
created TIMESTAMP DEFAULT CURRENT_TIMESTAMP());
Query OK, 0 rows affected (0.08 sec)
mysql> INSERT INTO fyi_links VALUES (101,
'dev.fyicenter.com',
NULL,
0,
'2006-04-30');
Query OK, 1 row affected, 1 warning (0.01 sec)
mysql> INSERT INTO fyi_links VALUES (102,
'dba.fyicenter.com',
NULL,
0,
DEFAULT);
Query OK, 1 row affected, 1 warning (0.01 sec)
mysql> INSERT INTO fyi_links (url, id)
VALUES ('sqa.fyicenter.com', 103);
Query OK, 1 row affected, 1 warning (0.01 sec)
You should keep this table and its data to practice other tutorial exercises presented in this collection.
⇒ Selecting All Columns of All Rows in MySQL
⇐ What Is a SELECT Query Statement in MySQL
2017-11-05, 2727🔥, 0💬
Popular Posts:
How AdventureWorksLT tables are related in SQL Server? There are 12 user tables defined in Adventure...
What is sqlservr.exe - Process - SQL Server (SQLEX?PRESS) in SQL Server? Process sqlservr.exe is the...
How To Replace Given Values with NULL using NULLIF() in SQL Server Transact-SQL? Sometime you want t...
What Privilege Is Needed for a User to Delete Rows from Tables in Another Schema in Oracle? For a us...
How to execute statements under given conditions in SQL Server Transact-SQL? How to use IF ... ELSE ...