Page 1 of 1

create view in mysql 4

Posted: Sun Feb 26, 2006 5:39 am
by milleusi
i wish to make a simple interogation in mysql 4.1.14-standard-log like this
create view v as select * from table1

and i get the folowing error:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'VIEW v AS SELECT * from table1' at line 1

Posted: Sun Feb 26, 2006 9:27 am
by feyd
Views weren't added until MySQL 5.

Posted: Sun Feb 26, 2006 11:55 am
by milleusi
in this case all i have to do is to use multiple selects in same interogation? this is not too much for the server? i need to make a join between 6 tables

eny ideeas......pls pls pls

Posted: Sun Feb 26, 2006 4:40 pm
by feyd
Joining across six tables is often quite intensive for servers. Look into doing subqueries, which may be a bit less intensive. You could also look at temporary tables.

Posted: Mon Feb 27, 2006 12:16 am
by milleusi
this could be the source of "Too many connection" error?

Posted: Mon Feb 27, 2006 12:27 am
by feyd
Too many connections! :) Seriously. If your database is shared across several domains on your server, that can definitely happen.