allenio
Jul 30 2011, 07:16 AM
according to sql buddy
the mysql is 5.0.75
when I try to create a table i get the following error
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 'charset latin1 auto_increment primary key, `comp` varchar(30)) CHARSET latin1' at line 1
I also tried creating a table through a query, which also created an error.
any ideas anyone?
dann12
Jul 30 2011, 08:28 AM
Can you please share the query you gave ?
adam007
Aug 8 2011, 09:40 AM
use following query
mysql> CREATE TABLE example_innodb (
id INT,
data VARCHAR(100)
) TYPE=innodb;
masterweb4real
Aug 13 2011, 07:28 AM
I think it should be something like the syntax $variable="CREATE TABLE address(ID int(7) NOT NULL auto_increment, name varchar(50) NOT NULL, PRIMARY KEY (ID) )"; mysql_query($variable); Then you update the tables with new values. But connect to the database first. I don't know if this is really your problem, but that's how to create a table
teeshort
Sep 19 2011, 07:08 AM
I have no I idea about the Mysql but I know the Sql.
Create the table
create table table name
(
declare the column like
column_name datatype;
)
shan2
Sep 19 2011, 08:16 PM
Now the next question is why would you create a table in a procedure. Unlike t-sql, oracle almost never needs temporary tables
vikramrandhawa
Sep 20 2011, 04:45 AM
Please change the table name of query then Execute the Query again..
create table tablename
(
column_name datatype;
)
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.