MySQL Forums
Forum List  »  General

Create view error
Posted by: André Vila Cova
Date: March 29, 2006 08:43AM

mysql> CREATE TABLE t (qty INT, price INT);
Query OK, 0 rows affected (0.00 sec)

mysql> INSERT INTO t VALUES(3, 50);
Query OK, 1 row affected (0.00 sec)

mysql> CREATE VIEW v AS SELECT qty, price, qty*price AS value FROM t;
ERROR 1064: You have an error in your SQL syntax near 'VIEW v AS SELECT qty, price, qty*price AS value FROM t' at line

Why this happen?

Thanks
André

Options: ReplyQuote


Subject
Written By
Posted
Create view error
March 29, 2006 08:43AM
March 29, 2006 09:43AM
March 29, 2006 09:53AM
March 29, 2006 03:21PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.