Collections:
Using SELECT Statements in Views in MySQL
Can SELECT Statements Be Used on Views in MySQL?
✍: FYIcenter.com
Select (query) statements can be used on views in the same way as tables. The following tutorial exercise helps you creating a view and running a query statement on the view:
mysql> CREATE VIEW myLinks AS SELECT * FROM fyi_links WHERE url LIKE '%fyi%'; Query OK, 0 rows affected (0.49 sec) mysql> SELECT tag, counts, url, DATE(created) FROM myLinks ORDER BY counts DESC; +------+--------+-------------------+---------------+ | tag | counts | url | DATE(created) | +------+--------+-------------------+---------------+ | SQA | 6 | sqa.fyicenter.com | 2006-07-01 | | DEV | 4 | dev.fyicenter.com | 2006-04-30 | | DBA | 3 | dba.fyicenter.com | 2006-07-01 | +------+--------+-------------------+---------------+ 3 rows in set (0.00 sec)
⇒ Filerting out Duplications in Returning Rows in MySQL
⇐ Count Number of Rows with SELECT Statements in MySQL
2018-01-06, 2150🔥, 0💬
Popular Posts:
How To Verify a User name with SQLCMD Tool in SQL Server? The quickest way to verify a user name in ...
How To Use DATEADD() Function in SQL Server Transact-SQL? DATEADD() is a very useful function for ma...
How To Format DATETIME Values to Strings with the CONVERT() Function in SQL Server Transact-SQL? SQL...
How To Recover a Dropped Index in Oracle? If you have the recycle bin feature turned on, dropped ind...
How To Get a List of All Tables with "sys.tables" View in SQL Server? If you want to see the table y...