There are some SQL constructs that MySQL supports and a few it doesn't support. during this section, we'll check out all the clauses that SQL allows. MySQL follows specific rules for naming variables and databases. we'll take a glance at those rules too.
MySQL allows the subsequent constructs:
USE
CREATE DATABASE
DROP DATABASE
ALTER DATABASE
CREATE TABLE
DROP TABLE
CREATE INDEX
DROP INDEX
ALTER TABLE
DESCRIBE
SHOW
SELECT
UNION
BEGIN
COMMIT
ROLLBACK
SET AUTOCOMMIT
DELETE
INSERT
LOAD DATA
REPLACE
UPDATE
FLUSH
GRANT
REVOKE
If we use the other SQL constructs like, for instance , INTERSECT, MySQL will throw a mistake .
Next, we'll check out the principles MYSQL follows for naming conventions.
USE <dbname>;
Select * from <table_name>
The second method is to use the fully qualified database name
Select * from <dbname>.<table_name>;
The same applies to column names as well.