Re: Using START SLAVE [SQL_THREAD] UNTIL syntax

2005-07-12 Thread gerald_clark
David Ulevitch wrote: On Jul 12, 2005, at 6:15 AM, gerald_clark wrote: Nightly backup and binlogs can take you to any point in the day. I failed to make my entire point clear then. That's true. But when someone does the oh fsck, I think I just ran a catastrophic query on our

Re: Using START SLAVE [SQL_THREAD] UNTIL syntax

2005-07-12 Thread Bruce Dembecki
Good issue, I totally had the same concerns, so we built our own system. As a side note we run an admin server which we use to generate reports, run backups and so on - it takes load off the production servers, where speed is critical. Recovery from backup however is a whole other issue,

Using START SLAVE [SQL_THREAD] UNTIL syntax

2005-07-11 Thread David Ulevitch
[ Note to list admin, you are blocking messages from gmail.com ] MySQL List, I have a large MySQL database (around 20 gigs in total, some tables =3gigs. All tables are MyISAM. We have replication setup to a number of slaves including one dedicated for backups. All are running some semi-recent

Re: Wanted: Help with 'ON DUPLICATE KEY' syntax

2005-06-30 Thread Johan Höök
(fkJobPosting, dtSnapShot, cJobTitle) VALUES (211584,'2005-06-26',2) ON DUPLICATE KEY UPDATE cJobTitle=2 DBD::mysql::st execute failed: 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 'ON DUPLICATE KEY UPDATE cJobTitle

Re: Wanted: Help with 'ON DUPLICATE KEY' syntax

2005-06-30 Thread Johan Höök
SQL syntax. error, and not those specified in this bug report. This means the SQL parser failed to understand its query. Regards, Jocelyn Hi Siegfried, I think you've run into bug #8732: ... Description: if you do a INSERT INTO table (col_list) SELECT ... ON DUPLICATE KEY UPDATE and refer

Grant Syntax Error.?

2005-06-30 Thread Mark Sargent
Hi All, trying to create a new user with the below, GRANT ALL PRIVILEGES ON *samhain* TO 'samhain'@'localhost' IDENTIFIED BY 'passwd' WITH GRANT OPTION; but, it gives a syntax error message. mysql version is 4.1.12. What is wrong with the syntax.? Cheers. Mark Sargent. -- MySQL General

RE: Grant Syntax Error.?

2005-06-30 Thread Martijn van den Burg
Hi, trying to create a new user with the below, GRANT ALL PRIVILEGES ON *samhain* TO 'samhain'@'localhost' IDENTIFIED BY 'passwd' WITH GRANT OPTION; That should be 'samhain.*', not '*samhain*'. Regards, Martijn -- The information contained in this communication and any attachments is

Re: Grant Syntax Error.?

2005-06-30 Thread Michael Stassen
Mark Sargent wrote: Hi All, trying to create a new user with the below, GRANT ALL PRIVILEGES ON *samhain* TO 'samhain'@'localhost' IDENTIFIED BY 'passwd' WITH GRANT OPTION; but, it gives a syntax error message. mysql version is 4.1.12. What is wrong with the syntax.? Cheers. Mark

Re: Grant Syntax Error.?

2005-06-30 Thread Gleb Paharenko
PRIVILEGES ON *samhain* TO 'samhain'@'localhost' IDENTIFIED BY 'passwd' WITH GRANT OPTION; but, it gives a syntax error message. mysql version is 4.1.12. What is wrong with the syntax.? Cheers. Mark Sargent. -- For technical support contracts, goto https://order.mysql.com/?ref

SQL Syntax Errors

2005-06-29 Thread Siegfried Heintze
. But then it tells me I have a syntax error! DBD::mysql::st execute failed: Duplicate entry '209689-2005-06-26' for key 1 at ./crawl-hot-jobs.pl line 675. The primary key consists of two fields: fkJobPosting (integer) and dtSnapshot (date). Now if my SQL had a syntax error, would it not give me an error

Re: SQL Syntax Errors

2005-06-29 Thread SGreen
INTO jobtitlecount (fkJobPosting, dtSnapShot, cJobTitle) VALUES (209689,'2005-06-26',1) This indicates success. But then it tells me I have a syntax error! DBD::mysql::st execute failed: Duplicate entry '209689-2005-06-26' for key 1 at ./crawl-hot-jobs.pl line 675. The primary key consists of two

(oops, corrections to that last email message) RE: SQL Syntax Errors

2005-06-29 Thread Siegfried Heintze
line 675. How could this be? Now here is another example where I detect a duplicate and delete the statement before trying to insert: DELETE jobtitlecount WHERE dtSnapShot ='2005-06-26' AND fkJobPosting = 211151 DBD::mysql::st execute failed: You have an error in your SQL syntax. Check the manual

Wanted: Help with 'ON DUPLICATE KEY' syntax

2005-06-29 Thread Siegfried Heintze
::mysql::st execute failed: 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 'ON DUPLICATE KEY UPDATE cJobTitle=2' at line 1 at ./crawl-hot-jobs.pl line 675. I'm looking at the documentation on http://dev.mysql.com

Re: Wanted: Help with 'ON DUPLICATE KEY' syntax

2005-06-29 Thread Jocelyn Fournier
Hi, Are you using MySQL-4.1 ? (ON DUPLICATE KEY syntax has been introduced in 4.1) Regards, Jocelyn Siegfried Heintze wrote: Thanks for deciphering that terrible message, Shawn. I accidentally must have hit the paste key too many times. Anyway, here is my new insert statement: INSERT

Re: (oops, corrections to that last email message) RE: SQL Syntax Errors

2005-06-29 Thread Michael Stassen
code (not an edited version). Now here is another example where I detect a duplicate and delete the statement before trying to insert: DELETE jobtitlecount WHERE dtSnapShot ='2005-06-26' AND fkJobPosting = 211151 DBD::mysql::st execute failed: You have an error in your SQL syntax. Check

Extended insert syntax and replication

2005-06-23 Thread Jeremiah Gowdy
I have two servers doing replication for logs. When I do extended insert syntax on the master to combine multiple log entries, the slave complains about duplicate primary key numbers, even though my inserts don't set the primary key and the primary key is auto_increment. So any time I use

Re: Extended insert syntax and replication

2005-06-23 Thread mfatene
servers doing replication for logs. When I do extended insert syntax on the master to combine multiple log entries, the slave complains about duplicate primary key numbers, even though my inserts don't set the primary key and the primary key is auto_increment. So any time I use extended insert

Re: Extended insert syntax and replication

2005-06-23 Thread Jeremiah Gowdy
The inserts succeed on the master, so the problem isn't my SQL syntax. They are legal extended inserts. It's just that the replication slave seems to insert them out of order and screw up the auto-increment primary key. - Original Message - From: [EMAIL PROTECTED] To: Jeremiah

Re: Extended insert syntax and replication

2005-06-23 Thread mfatene
see this for troubleshootings : http://sunsite.mff.cuni.cz/MIRRORS/ftp.mysql.com/doc/en/Replication_Problems.html hope that helps Mathias Selon Jeremiah Gowdy [EMAIL PROTECTED]: The inserts succeed on the master, so the problem isn't my SQL syntax. They are legal extended inserts. It's

Seeking Syntax Assistance

2005-05-13 Thread Scott Purcell
Hello, I am accustomed to Oracle query syntax, and I am having trouble with this following query which uses the IN. I am running mysql ( Ver 12.21 Distrib 4.0.15, for Win95/Win98 (i32) ) which does not support the IN. How do I rewrite the below query to function? Basically what I have is three

Re: Seeking Syntax Assistance

2005-05-13 Thread Eric Bergen
Sorry, mysql doesn't support sub queries until version 4.1 -Eric Scott Purcell wrote: Hello, I am accustomed to Oracle query syntax, and I am having trouble with this following query which uses the IN. I am running mysql ( Ver 12.21 Distrib 4.0.15, for Win95/Win98 (i32) ) which does not support

Re: Seeking Syntax Assistance

2005-05-13 Thread SGreen
Scott Purcell [EMAIL PROTECTED] wrote on 05/13/2005 12:05:05 PM: Hello, I am accustomed to Oracle query syntax, and I am having trouble with this following query which uses the IN. I am running mysql ( Ver 12. 21 Distrib 4.0.15, for Win95/Win98 (i32) ) which does not support the IN. How

need help in syntax for create package or compile etc

2005-04-30 Thread madderla sreedhar
Is there any statement named create and complie java source named .. syntax in the mysql for creation of a java source file for loading data from java files or retriving data etc . Any help is welcome . __ Do You Yahoo!? Tired of spam

Re: syntax errors with ENGINE=MYISAM... and NOT NULL default CURRENT_TIMESTAMP ...

2005-04-30 Thread Gleb Paharenko
Hello. Question 1: How do I check my syntax against the version and distribution that I am running? In manual it is usually said which features are available as of which version. Use the special form of comments to adopt your queries to corresponding version. See: http

Re: need help in syntax for create package or compile etc

2005-04-30 Thread Rhino
: need help in syntax for create package or compile etc Is there any statement named create and complie java source named .. syntax in the mysql for creation of a java source file for loading data from java files or retriving data etc . Any help is welcome

syntax errors with ENGINE=MYISAM... and NOT NULL default CURRENT_TIMESTAMP ...

2005-04-29 Thread Jacob, Raymond A Jr
running: mysql Ver 12.22 Distrib 4.0.23, for Win95/Win98(i32) downloaded from www.devside.net/web/servers/free/download. When I run a script with the following commands I get sql syntax errors: Create table 'test' ( 'helper' varchar(22) ) ENGINE=MYISAM DEFAULT CHARSET=latin1; I get a sql

mysql syntax

2005-04-19 Thread Rich Brant
I'm used to doing something simple such as the following in sql server: SELECT u.Username, p.UserID FROM Users u LEFT JOIN Person p ON u.UserID = p.UserID However, I'm not seeing the same results in MySQL. I don't get all the recs in the users table and NULLs in the userID

Re: mysql syntax

2005-04-19 Thread SGreen
Rich Brant [EMAIL PROTECTED] wrote on 04/19/2005 03:05:51 PM: I'm used to doing something simple such as the following in sql server: SELECT u.Username, p.UserID FROM Users u LEFT JOIN Person p ON u.UserID = p.UserID However, I'm not seeing the same results in MySQL.

RE: mysql syntax

2005-04-19 Thread Rich Brant
Subject: Re: mysql syntax Rich Brant [EMAIL PROTECTED] wrote on 04/19/2005 03:05:51 PM: I'm used to doing something simple such as the following in sql server: SELECT u.Username, p.UserID FROM Users u LEFT JOIN Person p ON u.UserID = p.UserID However, I'm not seeing

RE: mysql syntax

2005-04-19 Thread SGreen
, but is what I cant get to work in mysql... _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 19, 2005 3:14 PM To: Rich Brant Cc: mysql@lists.mysql.com Subject: Re: mysql syntax Rich Brant [EMAIL PROTECTED] wrote on 04/19/2005 03:05:51

Re: mysql syntax

2005-04-19 Thread gerald_clark
Rich Brant wrote: I forgot the important part: what I want is to filter on a userID in the person table such as - SELECT u.Username, p.UserID FROM Users u LEFT OUTER JOIN Person p ON u.UserID = p.UserID WHERE (p.UserID = 5) OR (p.UserID

ERROR 1064: You have an error in your SQL syntax....

2005-04-08 Thread Chuzo Okuda
. 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) = (select max

Re: ERROR 1064: You have an error in your SQL syntax....

2005-04-08 Thread Peter Brawley
. 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) = (select max

Re: What's up with this syntax?

2005-04-01 Thread Rhino
- Original Message - From: Daniel Kasak [EMAIL PROTECTED] To: mysql@lists.mysql.com Sent: Wednesday, March 30, 2005 11:24 PM Subject: What's up with this syntax? update _cached_LinesNotTolling LNT inner join TelecomLinePosting TLP on LNT.Line=TLP.Line inner join

Re: Syntax problem: mysql 3.23 vs 4.13

2005-03-30 Thread Gleb Paharenko
Hello. Select syntax is correct on my 4.1.10a MySQL instance. EXPLAIN is telling me 'Impossible WHERE' until I put values in the tables so the query could produce at least several rows. After that everything was OK. Graham Anderson [EMAIL PROTECTED] wrote: this sql works on mysql

What's up with this syntax?

2005-03-30 Thread Daniel Kasak
)/1*12, LNT.PhoneType=SitRepDesc, MaxOfInvDate=InvDate where TAP.DanPK=41675 group by TLP.Line It's giving me: 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 'group

RE: What's up with this syntax?

2005-03-30 Thread Tom Crimmins
on TLP.LineType=PhoneTypes.ID set AnnualService=sum(TLP.Service)/1*12, LNT.PhoneType=SitRepDesc, MaxOfInvDate=InvDate where TAP.DanPK=41675 group by TLP.Line It's giving me: You have an error in your SQL syntax. Check the manual

Re: What's up with this syntax?

2005-03-30 Thread Daniel Kasak
on TLP.LineType=PhoneTypes.ID set AnnualService=sum(TLP.Service)/1*12, LNT.PhoneType=SitRepDesc, MaxOfInvDate=InvDate where TAP.DanPK=41675 group by TLP.Line It's giving me: You have an error in your SQL syntax. Check the manual

Syntax problem: mysql 3.23 vs 4.13

2005-03-29 Thread Graham Anderson
this sql works on mysql version 3.23.58...my remote server SELECT c.City, r.Region, co.Country FROM subnets s, cities c, regions r, countries co WHERE c.CityId = s.CityId AND c.RegionID = r.RegionID AND c.CountryID = co.CountryId AND s.SubNetAddress = '24.24.172' LIMIT 0 , 30 but the same syntax

Re: Newbie: mysql syntax error question

2005-03-20 Thread Michael Stassen
=cities.cityid? JOIN regions on subnets.regionid=regions.regionid JOIN countries on subnets.countryid=countries.countryid where subnets.subnetaddress='24.24.172' this gives a syntax error: #1064 - You have an error in your SQL syntax near 'on subnets.cityid=subnets.cityid JOIN regions

Newbie: mysql syntax error question

2005-03-19 Thread Graham Anderson
subnets.subnetaddress='24.24.172' this gives a syntax error: #1064 - You have an error in your SQL syntax near 'on subnets.cityid=subnets.cityid JOIN regions on subnets.regionid=regions.regi' at line all the tables seem proper named and populated. what could this be ? g -- MySQL General Mailing List

SQL-Syntax Check

2005-03-15 Thread Christian Klinger
Hello Users does anyone know a tool or a way for validation sqlcode on the command_line??? For example ./sqlsyntaxchecker select * f test -- Error not valid sql syntax thx christian -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http

Equivalent syntax similiar to dir /w /s in Windows command prompt

2005-03-02 Thread Scott Hamm
Is there any equivalent syntax similiar to dir /w /s for all *.doc to insert into mysql database? -- Power to people, Linux is here. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Equivalent syntax similiar to dir /w /s in Windows command prompt

2005-03-02 Thread Ryan Yagatich
://www.pantek.com/linux [EMAIL PROTECTED] | / One Hour Emergency Response (877) 546-8934 | \___| On Wed, 2 Mar 2005, Scott Hamm wrote: Is there any equivalent syntax similiar to dir /w /s for all *.doc to insert into mysql database? -- MySQL

Re: Equivalent syntax similiar to dir /w /s in Windows command prompt

2005-03-02 Thread Scott Hamm
| \___| On Wed, 2 Mar 2005, Scott Hamm wrote: Is there any equivalent syntax similiar to dir /w /s for all *.doc to insert into mysql database? -- Power to people, Linux is here. -- MySQL General Mailing List For list archives: http

Re: Syntax for Compound IF Statements?

2005-02-08 Thread Johan Höök
. I also tried using the 'CASE .. WHEN .. THEN .. END' but couldn't figure out the syntax errors I was getting. Thanks again for your help and support- Sue -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Syntax for Compound IF Statements?

2005-02-08 Thread Ian Sales (DBA)
Harald Fuchs wrote: That's correct, but it can be written shorter and clearer: CASE Lccation WHEN 1 THEN 'Downstairs Cat Room' WHEN 2 THEN 'Kitten Room' WHEN 3 THEN 'Quarantine' ELSE 'Unknown' END AS Location - surely it would be better to have the location ids and location names in a lookup

Re: Syntax for Compound IF Statements?

2005-02-08 Thread SGreen
I want to test it again for another value... I couldn't find any information about this construct in the manuals or past list messages. I also tried using the 'CASE .. WHEN .. THEN .. END' but couldn't figure out the syntax errors I was getting. Thanks again for your help and support- Sue

Syntax for Compound IF Statements?

2005-02-07 Thread Sue Cram
about this construct in the manuals or past list messages. I also tried using the 'CASE .. WHEN .. THEN .. END' but couldn't figure out the syntax errors I was getting. Thanks again for your help and support- Sue

Re: Syntax for Compound IF Statements?

2005-02-07 Thread David Blomstrom
to test it again for another value... I couldn't find any information about this construct in the manuals or past list messages. I also tried using the 'CASE .. WHEN .. THEN .. END' but couldn't figure out the syntax errors I was getting. Thanks again for your help and support- Sue

Re: Syntax diagram, where is it located in the doc?

2005-02-04 Thread Alec . Cawley
Thomas Sundberg [EMAIL PROTECTED] wrote on 04/02/2005 11:39:12: Hi! I'm looking for the syntax diagram for MySQL and can't find it. I have downloaded the entire MySQL manual as one html page and searched it for the definition of where_definition and I cant find it. Could somebody please

RE: Syntax diagram, where is it located in the doc?

2005-02-04 Thread Thomas Sundberg
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: den 4 februari 2005 12:45 To: [EMAIL PROTECTED] Cc: mysql@lists.mysql.com Subject: Re: Syntax diagram, where is it located in the doc? Thomas Sundberg [EMAIL PROTECTED] wrote on 04/02/2005 11:39:12

Fw: Syntax diagram, where is it located in the doc?

2005-02-04 Thread Gabriel PREDA
: Thomas Sundberg [EMAIL PROTECTED] To: mysql@lists.mysql.com Sent: Friday, February 04, 2005 2:46 PM Subject: RE: Syntax diagram, where is it located in the doc? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: den 4 februari 2005 12:45 To: [EMAIL

Re: Syntax diagram, where is it located in the doc?

2005-02-04 Thread Michael Stassen
need this, someone could provide you with the answer you need. Michael Thomas Sundberg wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: den 4 februari 2005 12:45 To: [EMAIL PROTECTED] Cc: mysql@lists.mysql.com Subject: Re: Syntax diagram, where

RE: Syntax diagram, where is it located in the doc?

2005-02-04 Thread Alec . Cawley
Thomas Sundberg [EMAIL PROTECTED] wrote on 04/02/2005 12:46:02: Does anybody at the list know the answer to my question? I sent it a few days ago and haven't received any response. It does exist a syntax diagram for MySQL, doesn't it? Since no-one replied to your first

RE: Syntax diagram, where is it located in the doc?

2005-02-04 Thread Thomas Sundberg
-Original Message- From: Michael Stassen [mailto:[EMAIL PROTECTED] Sent: den 4 februari 2005 14:19 To: Thomas Sundberg Cc: mysql@lists.mysql.com Subject: Re: Syntax diagram, where is it located in the doc? From the manual, where_definition consists of the keyword WHERE

RE: Syntax diagram, where is it located in the doc?

2005-02-04 Thread Tom Crimmins
clause. And if so, how should the syntax be written? That Yes, you can use XOR in the where clause. SELECT * FROM mytable WHERE col1 XOR col2; This is not a bitwise XOR, it evaluates each column to true or false first then evals the XOR. example for an int column: a | b | eval 0

RE: Syntax diagram, where is it located in the doc?

2005-02-04 Thread Alec . Cawley
xor in a where clause. And if so, how should the syntax be written? That would have been extremely simple if the syntax diagram started just above the quote you supplied us with had been completed and not ended when things got a bit interesting. It would probably not have been very hepful

Re: Syntax diagram, where is it located in the doc?

2005-02-04 Thread Gleb Paharenko
Hello. May be it is not exactly what you want, but usually, I look at the sql/sql_yacc.yy in a source distribution. Thomas Sundberg [EMAIL PROTECTED] wrote: Hi! I'm looking for the syntax diagram for MySQL and can't find it. I have downloaded the entire MySQL manual as one html

Re: Syntax diagram, where is it located in the doc?

2005-02-04 Thread Peter Brawley
Thomas, As you've discovered, MySQL documentation doesn't (yet) include a syntax diagram, but there's a manual page for WHERE clauses, there's a manual page for logical operators including XOR, and they show that the answer to your question about WHERE clauses using XOR is 'yes', as does

Re: Syntax diagram, where is it located in the doc?

2005-02-04 Thread Jeremy Cole
Hi Thomas, I'm looking for the syntax diagram for MySQL and can't find it. I have Just to give you a complete answer to your question, this is what is valid (I've stripped out the C code parts to leave just the definition): where_clause: /* empty */ | WHERE expr expr: expr_expr

Syntax Failures with SELECT SUBSTRING - Help!

2005-02-03 Thread Sue Cram
and I get Syntax error or access violation near (AnimalName, 1,1) FROM Animal at Line 1. I can use the following with no error, so I know it has to be in the SUBSTRING option: SELECT AnimalName FROM Animal I also get a syntax error when I use an IF statement. I get the same error on my home

RE: Syntax Failures with SELECT SUBSTRING - Help!

2005-02-03 Thread Gordon
Try SELECT SUBSTRING(AnimalName, 1, 1) MySQL wants the ( to immediately follow the function i.e. no spaces. -Original Message- From: Sue Cram [mailto:[EMAIL PROTECTED] Sent: Thursday, February 03, 2005 9:28 AM To: mysql@lists.mysql.com Subject: Syntax Failures with SELECT SUBSTRING

Syntax diagram, where is it located in the doc?

2005-02-02 Thread Thomas Sundberg
Hi! I'm looking for the syntax diagram for MySQL and can't find it. I have downloaded the entire MySQL manual as one html page and searched it for the definition of where_definition and I cant find it. Could somebody please point me to a location where the complete syntax diagram can be found

SQL syntax error: help a noob

2005-01-31 Thread Chris Kavanagh
Dear list, My ColdFusion server tells me I have an error in my query syntax, but I can't work out what it is - because I'm working with code that someone very kindly gave me and I only have a vague idea of what the first line's doing! Can anyone see the problem here? SELECT DATEDIFF

Re: SQL syntax error: help a noob

2005-01-31 Thread Roger Baklund
Chris Kavanagh wrote: My ColdFusion server tells me I have an error in my query syntax, but I can't work out what it is - because I'm working with code that someone very kindly gave me and I only have a vague idea of what the first line's doing! Can anyone see the problem here? SELECT

RE: SQL syntax error: help a noob

2005-01-31 Thread Tom Crimmins
[snip] My ColdFusion server tells me I have an error in my query syntax, but I can't work out what it is - because I'm working with code that someone very kindly gave me and I only have a vague idea of what the first line's doing! Can anyone see the problem here? SELECT DATEDIFF(leadtime_type

Re: SQL syntax error: help a noob

2005-01-31 Thread Chris Kavanagh
Thanks very much for the replies, guys. My version is 4.1.7-max. The error message I get is: -- Error Executing Database Query. Syntax error or access violation: 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

RE: SQL syntax error: help a noob

2005-01-31 Thread Tom Crimmins
I think datediff only takes two arguments and you have three listed. --- Tom Crimmins Interface Specialist Pottawattamie County, Iowa -Original Message- From: Chris Kavanagh Sent: Monday, January 31, 2005 5:33 PM To: mysql@lists.mysql.com Subject: Re: SQL syntax error: help a noob

SOLVED: SQL syntax error: help a noob

2005-01-31 Thread Chris Kavanagh
On 31 Jan 2005, at 11:39 pm, Tom Crimmins wrote: I think datediff only takes two arguments and you have three listed. Nailed it! Thanks, Tom. Best regards, CK. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

error in your SQL syntax

2005-01-26 Thread Daniel Sousa
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.products_name

Re: error in your SQL syntax

2005-01-26 Thread Rhino
. Are the different machines all running the exact same version of MySQL? Rhino - Original Message - From: Daniel Sousa [EMAIL PROTECTED] To: mysql@lists.mysql.com Sent: Wednesday, January 26, 2005 6:45 AM Subject: error in your SQL syntax I have a problem. 1064 - You have an error

Re: error in your SQL syntax

2005-01-26 Thread SGreen
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. products_name, products.products_price

Re: error in your SQL syntax

2005-01-26 Thread Daniel Sousa
: 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

RE: error in your SQL syntax

2005-01-26 Thread Artem Koltsov
: 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: [EMAIL PROTECTED] To: Daniel Sousa Cc: mysql@lists.mysql.com Sent

SHOW COLUMNS Syntax Using 3.23.54 Please!

2005-01-18 Thread shaun thornburgh
Hi, I am trying to get all field names from my table that begin with letter X or Y, however the following statement and many variations I have tried produce an error: SHOW COLUMNS FROM TABLE LIKE X% OR LIKE Y% Any help here would be much appreciated :) -- MySQL General Mailing List For list

Re: SHOW COLUMNS Syntax Using 3.23.54 Please!

2005-01-18 Thread Roger Baklund
shaun thornburgh wrote: I am trying to get all field names from my table that begin with letter X or Y, however the following statement and many variations I have tried produce an error: SHOW COLUMNS FROM TABLE LIKE X% OR LIKE Y% According to the manual, the pattern for SHOW COLUMNS is: SHOW

SHOW COLUMNS Syntax Using 3.23.54

2005-01-17 Thread shaun thornburgh
Hi, I am trying to get all field names from my table that begin with letter X or Y, however the following statement and many variations I have tried produce an error: SHOW COLUMNS FROM TABLE LIKE X% OR LIKE Y% Any help here would be much appreciated :) -- MySQL General Mailing List For list

ALTER TABLE....with CHANGE syntax

2005-01-11 Thread Karam Chand
Hello, Can somebody tell me from which version of MySQL is - ALTER TABLECHANGE... syntax supported. Regards, Karam __ Do you Yahoo!? Yahoo! Mail - Easier than ever with enhanced search. Learn more. http://info.mail.yahoo.com/mail_250

Re: ALTER TABLE....with CHANGE syntax

2005-01-11 Thread Andy Ford
Which version are you running. Quite often when you see a 'check the version you are running' message indicates a syntax error in your mySQL statement.. Andy On Tue, 2005-01-11 at 05:13 -0800, Karam Chand wrote: Hello, Can somebody tell me from which version of MySQL is - ALTER TABLE

Re: ALTER TABLE....with CHANGE syntax

2005-01-11 Thread Karam Chand
are running' message indicates a syntax error in your mySQL statement.. Andy On Tue, 2005-01-11 at 05:13 -0800, Karam Chand wrote: Hello, Can somebody tell me from which version of MySQL is - ALTER TABLECHANGE... syntax supported. Regards, Karam

ALTER TABLE....with CHANGE syntax

2005-01-10 Thread Karam Chand
Hello, I plan to reorder some columns of my table. So I am using ALTER TABLE STATEMENT .. with CHANGE syntax as suggested at: http://dev.mysql.com/doc/mysql/en/ALTER_TABLE_problems.html I believe its the only way to reorder columns? Is there something better? If CHANGE is the best option

Re: FLUSH syntax query

2005-01-08 Thread Gleb Paharenko
Hello. Yes. Karam Chand [EMAIL PROTECTED] wrote: So if I use FLUSH MASTERS and FLUSH SLAVES, it will have the same effect with new versions of MySQL too. Karam --- Gleb Paharenko [EMAIL PROTECTED] wrote: Hello. Also, from which version of MySQL LOCAL and

weird syntax error

2005-01-07 Thread B Wiley Snyder
), - Description BLOB, - ); 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 10 mysql -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe

Re: weird syntax error

2005-01-07 Thread Rhino
, 2005 3:28 PM Subject: weird syntax error When I use 4.0 on windows I don't get this error but now that i'm using 4.1.x I'm getting error 1064 , is BLOB depricated or something ??? Please help ! thanks in advance === Your MySQL connection id is 97

Re: FLUSH syntax query

2005-01-06 Thread Gleb Paharenko
Hello. Also, from which version of MySQL LOCAL and NO_WRITE_TO_BINLOG options supported? 4.1.1 RESET MASTER and RESET SLAVE were named FLUSH MASTER and FLUSH SLAVES before MySQL 3.23.26. Karam Chand [EMAIL PROTECTED] wrote: Hello, From the MySQL docs:

Re: FLUSH syntax query

2005-01-06 Thread Karam Chand
So if I use FLUSH MASTERS and FLUSH SLAVES, it will have the same effect with new versions of MySQL too. Karam --- Gleb Paharenko [EMAIL PROTECTED] wrote: Hello. Also, from which version of MySQL LOCAL and NO_WRITE_TO_BINLOG options supported? 4.1.1 RESET MASTER and RESET SLAVE were

FLUSH syntax query

2005-01-05 Thread Karam Chand
Hello, From the MySQL docs: http://dev.mysql.com/doc/mysql/en/FLUSH.html What does FLUSH MASTER and FLUSH SLAVES does? Its not documented? Also, from which version of MySQL LOCAL and NO_WRITE_TO_BINLOG options supported? Regards, Karam __ Do

simple subquery syntax not working!

2004-12-22 Thread Renee Henderson
alone and they work fine. (e.g. if I enter a 5 after the equal sign, it works and if I just type the subquery alone, it returns the single number 5.) So, why does mysql give me a syntax error? --- SELECT personRoleDBNum FROM PersonRole

Re: simple subquery syntax not working!

2004-12-22 Thread Homam S.A.
between two upper tables, Person and Role. I have tested the two pieces of the query alone and they work fine. (e.g. if I enter a 5 after the equal sign, it works and if I just type the subquery alone, it returns the single number 5.) So, why does mysql give me a syntax error

RE: simple subquery syntax not working!

2004-12-22 Thread Harish
syntax not working! I have read through quite a bit of the MySQL manual concerning subqueries and cannot seem to get even the simplist of queries to work! I have a table called PersonRole which is the many-to-many joint table between two upper tables, Person and Role. I have tested the two pieces

Question - SubQuery syntax

2004-12-21 Thread Jan Peta
Hello, I have problem with this syntax: SELECT game_id FROM game WHERE game_id NOT IN (SELECT game_id FROM player WHERE user_id!=$id_user) I need select games where user is not connected. I have two tables game(game_id, ) and player(player_id, game_id, user_id, ...). In table player

Re: Question - SubQuery syntax

2004-12-21 Thread Jigal van Hemert
I have problem with this syntax: SELECT game_id FROM game WHERE game_id NOT IN (SELECT game_id FROM player WHERE user_id!=$id_user) I need select games where user is not connected. I have two tables game(game_id, ) and player(player_id, game_id, user_id, ...). In table player are many

query syntax in new mysql query browser

2004-12-09 Thread Eben
and it runs fine. However the same query loaded into MySQL Query Browser fails after the first line. Is there a way to structure the syntax differently so I can run the multiple truncates in one query via Qeury Browser? Any advice is appreciated, Eben -- MySQL General Mailing List For list archives

Re: syntax question..

2004-11-15 Thread kalin mintchev
- Original Message - From: kalin mintchev [EMAIL PROTECTED] To: Adam [EMAIL PROTECTED] Cc: MySQL General [EMAIL PROTECTED] Sent: Sunday, November 14, 2004 11:33 PM Subject: Re: syntax question.. Kalin, Kalin thanks to all... yes, Rhino - i'm new. my first Kalin post

Re: syntax question..

2004-11-15 Thread Rhino
I think you need to do something like this: select t1.data from table1 t1 inner join table2 t2 on t1.zip = t2.zip where t2.chain like '%carmike%'; i tried this one... it seams to work. i'll read a bit more about joins .. thank you... appreciate it... You're welcome! Rhino --

syntax question..

2004-11-14 Thread kalin mintchev
hi everybody.. can somebody please explain what is wrong with this command: select t1.data from table1 as t1 where t1.zip=(select * from table2 as t2 where t2.chain like %carmike%); thank you... -- -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To

RE: syntax question..

2004-11-14 Thread Peter Lovatt
November 2004 23:06 To: [EMAIL PROTECTED] Subject: syntax question.. hi everybody.. can somebody please explain what is wrong with this command: select t1.data from table1 as t1 where t1.zip=(select * from table2 as t2 where t2.chain like %carmike%); thank you... -- -- MySQL General

Re: syntax question..

2004-11-14 Thread Jeff Smelser
On Sunday 14 November 2004 05:05 pm, kalin mintchev wrote: can somebody please explain what is wrong with this command: select t1.data from table1 as t1 where t1.zip=(select * from table2 as t2 where t2.chain like %carmike%); If your no usiing 4.1, subselects are not even allowed.. If so..

Re: syntax question..

2004-11-14 Thread Rhino
- Original Message - From: kalin mintchev [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, November 14, 2004 6:05 PM Subject: syntax question.. hi everybody.. can somebody please explain what is wrong with this command: select t1.data from table1 as t1 where t1.zip=(select

<    1   2   3   4   5   6   7   8   9   10   >