Collections:
Use "mysql" to Run SQL Statements in MySQL
How To Use "mysql" to Run SQL Statements in MySQL?
✍: FYIcenter.com
If you want to run SQL statement to your server with "mysql", you need to start "mysql" and enter your SQL statement at the "mysql" prompt. Here is a good tutorial exercise that shows you how to run two SQL statements with "mysql":
>cd \mysql\bin
>mysql -u root test
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 4 to server version: 5.0.24
mysql> CREATE TABLE links (name VARCHAR(80));
Query OK, 0 rows affected (0.10 sec)
mysql> INSERT INTO links VALUES ('dba.fyicenter.com');
Query OK, 1 row affected (0.02 sec)
mysql> quit;
Bye
⇒ List All Tables with "mysql" Command in MySQL
⇐ What Is "mysql" Command in MySQL
2018-02-28, 2341🔥, 0💬
Popular Posts:
How To List All Stored Procedures in the Current Database in SQL Server Transact-SQL? If you want to...
How To Drop an Index in Oracle? If you don't need an existing index any more, you should delete it w...
Why I Can Not Enter 0.001 Second in DATETIME values in SQL Server Transact-SQL? If you enter millise...
Where to find Oracle database server tutorials? Here is a collection of tutorials, tips and FAQs for...
How To Connect the Oracle Server as SYSDBA in Oracle? This is Step 4. The best way to connect to the...