At 15:19 +0100 7/6/06, Rob Desbois wrote:
With the CHANGE clause of ALTER TABLE statement, you must provide
the column definition, so something like this is what you need:
ALTER TABLE actors CHANGE director_id actor_id MEDIUMINT UNSIGNED NOT NULL;
or whatever your original definition is.
Wo
bject: ERROR 1064 (42000): You have an error in your SQL syntax;
Hi All,
gee I really hate bugging you all for this. I looked at this page,
http://dev.mysql.com/doc/refman/5.0/en/alter-table.html
which has this,
To change column |a| from |INTEGER| to |TINYINT NOT NULL| (leaving the name
the
ERROR 1064 (42000): 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 '' at line 1
Sorry, little confused right about now, eh. Cheers.
Mark Sargent.
--
MySQL General Mailing List
For list archives: h
At 0:09 +1000 8/6/06, Mark Sargent wrote:
ALTER TABLE t2 MODIFY a TINYINT NOT NULL, CHANGE b c CHAR(20);
for changing the name of a column, right? So, why doesn't the below work?
mysql> ALTER TABLE actors CHANGE director_id actor_id;
I'm no great expert myself, but off the top of my head, may
well as renaming it from |b| to |c|:
ALTER TABLE t2 MODIFY a TINYINT NOT NULL, CHANGE b c CHAR(20);
for changing the name of a column, right? So, why doesn't the below work?
mysql> ALTER TABLE actors CHANGE director_id actor_id;
I get this,
ERROR 1064 (42000): You have an error in
The following caused the same error of:
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 'select max(length(testName)) from test)' at line 1
select testName from test where length(testName)
following caused the same error of:
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 'select max(length(testName)) from test)' at line 1
select testName from test where length(testName) = (s
lists.mysql.com
> Subject: Re: error in your SQL syntax
>
>
> Thanks, works fines.
>
> I use access because i donĀ“t know a GUI tool that make SQL
> querys more easy.
>
> Thanks all again,
>
> Daniel Sousa
> - Original Message -
> From:
: error in your SQL syntax
Here is your original query, reformatted merely so that we humans can read it
better:
SELECT DISTINCT specials.specials_id
, products_to_categories.products_id
, categories.parent_id
, products_description.products_name
ROTECTED]> wrote on 01/26/2005 06:45:32 AM:
> I have a problem.
>
> 1064 - You have an error in your SQL syntax near '(((specials INNER
> JOIN (products_to_categories INNER JOIN categories ON products' at line
2
>
> SELECT DISTINCT specials.specials_id, prod
ch machine.
Are the different machines all running the exact same version of MySQL?
Rhino
- Original Message -
From: "Daniel Sousa" <[EMAIL PROTECTED]>
To:
Sent: Wednesday, January 26, 2005 6:45 AM
Subject: error in your SQL syntax
I have a problem.
1064 - You have a
I have a problem.
1064 - You have an error in your SQL syntax near '(((specials INNER JOIN
(products_to_categories INNER JOIN categories ON products' at line 2
SELECT DISTINCT specials.specials_id, products_to_categories.products_id,
categories.parent_id, products_description.pro
:
>
> MySQL said: You have an error in your SQL syntax near 'order by 'Value' ASC'
> at line 1
This means that the clicking produced an invalid SQL
command. Seemingly it wanted to run
show variables order by 'Value' ASC
which is no valid command (SHOW VARI
messing around with the
control panel on my website and went to MySQL database. I clicked on: Show
MySQL system variables. Then I could click on: Variable_name, or Value both
give me this:
MySQL said: You have an error in your SQL syntax near 'order by 'Value' ASC'
at line
From: <[EMAIL PROTECTED]>
> MySQL said: You have an error in your SQL syntax near 'order by
> 'Variable_name' ASC' at line 1
>
> Any ideas as to what this means, and how to fix it?
Hi Dave,
How 'bout sending us the entire SQL statement, pleas
Hi,
MySQL said: You have an error in your SQL syntax near 'order by
'Variable_name' ASC' at line 1
Any ideas as to what this means, and how to fix it?
Thanks, Dave
-
Before posting, please check:
16 matches
Mail list logo