sql >> Database teknologi >  >> RDS >> Mysql

MySql - Problemer med at oprette visning

CREATE VIEW contactnotes AS
SELECT contact.ID as id1, log.ID as id2, contact.Name, log.notes
FROM log 
JOIN contact 
ON log.ID = contact.ID

eller

CREATE VIEW contactnotes AS
SELECT contact.ID as id1, log.ID as id2, contact.Name, log.notes
FROM log 
INNER JOIN contact USING (ID)



  1. SQL-datointervaller forespørgsel

  2. Oracle INSERT INTO SELECT(...) DUP_VAL_ON_INDEX undtagelsesadfærd

  3. orakel - hvilke udtalelser skal begås?

  4. Hvad er STATISTICS IO i SQL Server?