Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

creating a joined view in mysql

mysql> CREATE VIEW customer_V AS Select DISTINCT Name FROM customers c INNER JOIN Reserve R ON R.id = c.customer_id;
Query OK, 0 rows affected (0.08 sec)

mysql> Select * from customer_V;
+---------+
| Name    |
+---------+
| Rahul   |
| Yashpal |
| Gaurav  |
+---------+
3 rows in set (0.02 sec)
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #creating #joined #view #mysql
ADD COMMENT
Topic
Name
9+6 =