473,320 Members | 1,876 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

MySql Syntax error

The follow SQL expressions don't work in MySQL:

UPDATE calendar SET Date = '2004-01-29' WHERE Date < '2004-01-29' AND
Done = 0
UPDATE calendar SET Date = '2004-01-29' WHERE ((Date < '2004-01-29') AND
(Done = 0))
UPDATE calendar SET Date = '2004-01-29' WHERE (Date < '2004-01-29') AND
(Done = 0)
UPDATE calendar SET Date = '2004-01-29' WHERE (Date < '2004-01-29' AND
Done = 0)

does not work. (I get error "1030 - got error 134 from table handler").

yet
UPDATE calendar SET Date = '2004-01-29' WHERE Date < '2004-01-29'
and
UPDATE calendar SET Date = '2004-01-29' WHERE Done = 0
do work.

Any ideas on what might be wrong?

What we are trying to do is update a task list so that all uncompleted
tasks are set to the current date. Done is a tinyint and Date is a Date
field.

Thanks.
Jul 19 '05 #1
6 1908
ch*****@nospaamteamlit.com wrote:
The follow SQL expressions don't work in MySQL:

UPDATE calendar SET Date = '2004-01-29' WHERE Date < '2004-01-29' AND
Done = 0
UPDATE calendar SET Date = '2004-01-29' WHERE ((Date < '2004-01-29') AND
(Done = 0))
UPDATE calendar SET Date = '2004-01-29' WHERE (Date < '2004-01-29') AND
(Done = 0)
UPDATE calendar SET Date = '2004-01-29' WHERE (Date < '2004-01-29' AND
Done = 0)

does not work. (I get error "1030 - got error 134 from table handler").


this kind of error does not indicate a syntax error.
more likely, your table has errors. you can test this and repair the
table if necessary. i suggest you read about this topic in the manual
(seems to be section 5.5).

steven.
Jul 19 '05 #2
ch*****@nospaamteamlit.com wrote:
The follow SQL expressions don't work in MySQL:

UPDATE calendar SET Date = '2004-01-29' WHERE Date < '2004-01-29' AND
Done = 0
UPDATE calendar SET Date = '2004-01-29' WHERE ((Date < '2004-01-29') AND
(Done = 0))
UPDATE calendar SET Date = '2004-01-29' WHERE (Date < '2004-01-29') AND
(Done = 0)
UPDATE calendar SET Date = '2004-01-29' WHERE (Date < '2004-01-29' AND
Done = 0)

does not work. (I get error "1030 - got error 134 from table handler").


this kind of error does not indicate a syntax error.
more likely, your table has errors. you can test this and repair the
table if necessary. i suggest you read about this topic in the manual
(seems to be section 5.5).

steven.
Jul 19 '05 #3
ch*****@nospaamteamlit.com wrote:
The follow SQL expressions don't work in MySQL:

UPDATE calendar SET Date = '2004-01-29' WHERE Date < '2004-01-29' AND
Done = 0
UPDATE calendar SET Date = '2004-01-29' WHERE ((Date < '2004-01-29') AND
(Done = 0))
UPDATE calendar SET Date = '2004-01-29' WHERE (Date < '2004-01-29') AND
(Done = 0)
UPDATE calendar SET Date = '2004-01-29' WHERE (Date < '2004-01-29' AND
Done = 0)

does not work. (I get error "1030 - got error 134 from table handler").


this kind of error does not indicate a syntax error.
more likely, your table has errors. you can test this and repair the
table if necessary. i suggest you read about this topic in the manual
(seems to be section 5.5).

steven.
Jul 19 '05 #4
Thanks! That was the problem.

The manual could use some documentation describing what the results of the
'Check Table' command mean, but 'Repair Table' worked!

steven mestdagh <st*************@esat.kuleuvenREMOVE-THIS.ac.be> wrote:
ch*****@nospaamteamlit.com wrote:
The follow SQL expressions don't work in MySQL:

UPDATE calendar SET Date = '2004-01-29' WHERE Date < '2004-01-29' AND
Done = 0
UPDATE calendar SET Date = '2004-01-29' WHERE ((Date < '2004-01-29') AND
(Done = 0))
UPDATE calendar SET Date = '2004-01-29' WHERE (Date < '2004-01-29') AND
(Done = 0)
UPDATE calendar SET Date = '2004-01-29' WHERE (Date < '2004-01-29' AND
Done = 0)

does not work. (I get error "1030 - got error 134 from table handler").


this kind of error does not indicate a syntax error.
more likely, your table has errors. you can test this and repair the
table if necessary. i suggest you read about this topic in the manual
(seems to be section 5.5).

steven.


Jul 19 '05 #5
Thanks! That was the problem.

The manual could use some documentation describing what the results of the
'Check Table' command mean, but 'Repair Table' worked!

steven mestdagh <st*************@esat.kuleuvenREMOVE-THIS.ac.be> wrote:
ch*****@nospaamteamlit.com wrote:
The follow SQL expressions don't work in MySQL:

UPDATE calendar SET Date = '2004-01-29' WHERE Date < '2004-01-29' AND
Done = 0
UPDATE calendar SET Date = '2004-01-29' WHERE ((Date < '2004-01-29') AND
(Done = 0))
UPDATE calendar SET Date = '2004-01-29' WHERE (Date < '2004-01-29') AND
(Done = 0)
UPDATE calendar SET Date = '2004-01-29' WHERE (Date < '2004-01-29' AND
Done = 0)

does not work. (I get error "1030 - got error 134 from table handler").


this kind of error does not indicate a syntax error.
more likely, your table has errors. you can test this and repair the
table if necessary. i suggest you read about this topic in the manual
(seems to be section 5.5).

steven.


Jul 19 '05 #6
Thanks! That was the problem.

The manual could use some documentation describing what the results of the
'Check Table' command mean, but 'Repair Table' worked!

steven mestdagh <st*************@esat.kuleuvenREMOVE-THIS.ac.be> wrote:
ch*****@nospaamteamlit.com wrote:
The follow SQL expressions don't work in MySQL:

UPDATE calendar SET Date = '2004-01-29' WHERE Date < '2004-01-29' AND
Done = 0
UPDATE calendar SET Date = '2004-01-29' WHERE ((Date < '2004-01-29') AND
(Done = 0))
UPDATE calendar SET Date = '2004-01-29' WHERE (Date < '2004-01-29') AND
(Done = 0)
UPDATE calendar SET Date = '2004-01-29' WHERE (Date < '2004-01-29' AND
Done = 0)

does not work. (I get error "1030 - got error 134 from table handler").


this kind of error does not indicate a syntax error.
more likely, your table has errors. you can test this and repair the
table if necessary. i suggest you read about this topic in the manual
(seems to be section 5.5).

steven.


Jul 19 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Fatt Shin | last post by:
Hi, I'm running MySQL 4.0.13, connecting from PowerBuilder 9 using ODCB Connector 3.51. I'm facing a problem where whenever I issue a SELECT COUNT(*) statement from PowerBuilder, I always get SQL...
0
by: Mario Ohnewald | last post by:
Hello! I want to import a MySQL 3.x Databse to my new shiny MySQL4.x. I did a backup with /usr/local/mysql-standard-4.0.14-pc-linux-i686/bin/mysqldump -u root -p --opt -A > mysql_lamp_backup.`date...
0
by: google account | last post by:
*sigh* I have done all that I know how.... I am using fedora core1, I believe. I have updated the MySQL version to 4.0.17-0. I am trying this: rpm -i MySQL-python2.1-0.9.2-1.i386.rpm
4
by: Adam Smith | last post by:
I have a dedicated server running 'FreeBSD 4.9 STABLE' at a hosting site. They have done some default installations, presumably from the CVS ports package ??. Herein lies the problem, "I do not...
13
by: wideangle | last post by:
Hello there! I know it's stupid, but when creating a table in a mysql (win32) database, it won't let me create this "mytable". Here goes my ER_PARSE_ERROR. mysql> CREATE TABLE `mytable` ( ->...
2
by: speralta | last post by:
My tired old eyes may be failing me, but the following insert statements look correct to me, but I can't seem to get a clean insert from a fairly large text file database into mysql. I was...
1
by: Ike | last post by:
Recently, I began using a different MySQL verver (i.e. different machine as well as different version#, going from 4.12a to 4.1.9 max). The following query used to work: select firstname,...
1
by: ajos | last post by:
hi evrybdy, the problem is:- i had this running before in jsp but when i changed the jsp page using struts tags there occoured a problem... when i enter values in the 2 text boxes and click enter...
39
by: alex | last post by:
I've converted a latin1 database I have to utf8. The process has been: # mysqldump -u root -p --default-character-set=latin1 -c --insert-ignore --skip-set-charset mydb mydb.sql # iconv -f...
5
by: gsaray101 | last post by:
I am trying to set up one server with multiple mysql dbs. This script will get the mysqldump files from the ftp server and based on the name of the server in the file, it will create the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.