RE: Join syntax problem

2010-04-27 Thread Steven Staples
esigns.com] > Sent: April 26, 2010 10:29 PM > To: mysql@lists.mysql.com > Subject: Re: Join syntax problem > > Thanks for the replies. It was my understanding that whitespace is > ignored, > and I did not think that not having space, in particular with "." wou

Re: Join syntax problem

2010-04-26 Thread Gary
Thanks for the replies. It was my understanding that whitespace is ignored, and I did not think that not having space, in particular with "." would result in an error message. Gary ""Gary"" wrote in message news:20100426233621.10789.qm...@lists.mysql.com... I cant seem to get this working.

Re: Join syntax problem

2010-04-26 Thread Rob Wultsch
I am reading this on a tiny screen but it looks like you need whitespace before the where. On 4/26/10, Gary wrote: > I cant seem to get this working. > > $query="SELECT im.image_id, im.caption, im.where_taken, im.description, > im.image_file, im.submitted, kw.fox, kw.wolves, kw.wildlife, kw.ameri

Re: Join syntax problem

2010-04-26 Thread Tom Worster
On 4/26/10 7:36 PM, "Gary" wrote: > I cant seem to get this working. > > $query="SELECT im.image_id, im.caption, im.where_taken, im.description, > im.image_file, im.submitted, kw.fox, kw.wolves, kw.wildlife, kw.american, > kw.scenic, kw.birds, kw.africa, kw.eagles, kw.hunter" . > "FROM *images A

Join syntax problem

2010-04-26 Thread Gary
I cant seem to get this working. $query="SELECT im.image_id, im.caption, im.where_taken, im.description, im.image_file, im.submitted, kw.fox, kw.wolves, kw.wildlife, kw.american, kw.scenic, kw.birds, kw.africa, kw.eagles, kw.hunter" . "FROM *images AS im"."JOIN keywords AS kw USING (image_id)" .

Re: Wierd INSERT ... SELECT syntax problem

2008-09-06 Thread Dan Tappin
Thanks for the tip. I am looking at just making 16 separate queries. It will be easier to manage and faster to run. Dan On Sep 6, 2008, at 9:37 PM, Brent Baisley <[EMAIL PROTECTED]> wrote: Well, for your simple example, you can use query variables to add the "counters". SET @cntr:=0, @last

Re: Wierd INSERT ... SELECT syntax problem

2008-09-06 Thread Brent Baisley
Well, for your simple example, you can use query variables to add the "counters". SET @cntr:=0, @lastVal:='A' INSERT INTO tableB LOC,DATA SELECT CONCAT(LOC, CONCAT( IF(@lastVal=LOC, @cntr:[EMAIL PROTECTED], @cntr:=0), IF(@lastVal:=LOC,'',''))) LOC, CONCAT(DATA, @cntr) FROM tableA ORDER BY

Wierd INSERT ... SELECT syntax problem

2008-09-05 Thread Dan Tappin
I have an existing data set - here is an example (the real one is more complex than this) LOC DATA - A 1 B 2 C 3 D 4 E 5 F 6 ... and I am looking to run some sort of INSERT ... SELECT on this to make a new table like this: LOC DATA

Re: Syntax Problem

2006-12-08 Thread JugLugs
Field was wrongly named - Cheers! -- View this message in context: http://www.nabble.com/Syntax-Problem-tf2779708.html#a7756233 Sent from the MySQL - General mailing list archive at Nabble.com. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe

Re: Syntax Problem

2006-12-08 Thread Martijn Tonies
> I have a query running within a project from a Windows machine retrieving > data from a Linux Source the query works perfectly. If i upload the exact > same project to the Linux machine and run it the query doesnt work ??!!?? > > the query string is ... > > SELECT DISTINCT ID, BatchID FROM Conta

Syntax Problem

2006-12-08 Thread JugLugs
am i going mad ? Cheers JugLugs -- View this message in context: http://www.nabble.com/Syntax-Problem-tf2779708.html#a7755229 Sent from the MySQL - General mailing list archive at Nabble.com. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

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 mys

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 fa

Re: SQL Syntax Problem

2004-11-11 Thread David Blomstrom
--- Ligaya Turmelle <[EMAIL PROTECTED]> wrote: > Think I found it. I made the changes with > explanations of what I did. > If you have any further questions feel free to ask. > Oh and this should > be on the list for others to see and maybe learn > from Wow, thanks so much for going to all th

Re: SQL Syntax Problem

2004-11-11 Thread Ligaya Turmelle
Think I found it. I made the changes with explanations of what I did. If you have any further questions feel free to ask. Oh and this should be on the list for others to see and maybe learn from Respectfully, Ligaya Turmelle [DATABASE CONNECTION] Country

RE: SQL Syntax Problem

2004-11-11 Thread Adams, Pat 006
> -Original Message- > From: David Blomstrom [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 10, 2004 4:08 PM > To: [EMAIL PROTECTED] > Subject: SQL Syntax Problem > > $sql = 'SELECT > F.IDArea, > C.IDArea, C.Name, C.Pop, C.Nationality, > C.Nation

Re: SQL Syntax Problem

2004-11-10 Thread Ligaya Turmelle
First echo out the SQL and verify it is what you are expecting. If it isn't try changing it to: $sql = 'SELECT F.IDArea, C.IDArea, C.Name, C.Pop, C.Nationality, C.NationalityPlural, C.NationalityAdjective FROM cia_people C, famarea2 F WHERE (C.Nati

Re: SQL Syntax Problem

2004-11-10 Thread Michael J. Pawlowsky
It's not translating your vars to their respective values. I didn't look to see why... But MySQL doesn't know what $_POST['order'] is. David Blomstrom wrote: This may be a purely PHP problem, but the error message says "SQL syntax. Check the manual that corresponds to your MySQL server version.

SQL Syntax Problem

2004-11-10 Thread David Blomstrom
This may be a purely PHP problem, but the error message says "SQL syntax. Check the manual that corresponds to your MySQL server version..." More important, I haven't been able to find a solution on any PHP forums. :) This is the complete error message: Failed to run SELECT F.IDArea, C.IDArea, C

Re: GRANT & REVOKE Syntax problem

2004-03-09 Thread Roger Baklund
* Franz Edler > I have a perhaps simple problem, but it's a problem for me: > > I have made the following GRANT statement: > mysql> GRANT ALL ON ser.* TO [EMAIL PROTECTED]; > Query OK, 0 rows affected (0.01 sec) > > But when I want to REVOKE the GRANT I get the following syntax error: > > mysql

GRANT & REVOKE Syntax problem

2004-03-09 Thread Franz Edler
Hi, I have a perhaps simple problem, but it's a problem for me: I have made the following GRANT statement: mysql> GRANT ALL ON ser.* TO [EMAIL PROTECTED]; Query OK, 0 rows affected (0.01 sec) But when I want to REVOKE the GRANT I get the following syntax error: mysql> REVOKE ALL ON ser.* TO [EM

RE: ENCRYPT Syntax problem

2003-10-10 Thread Thada, Shantalaxmi (NIH/CC/PET)
I think your INSERT syntax is wrong. There is no "TABLE" in the syntax. It has to be INSERT INTO admin VALUES . - Shanta -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, October 10, 2003 2:03 PM To: [EMAIL PROTECTED] Subject: ENCRYPT Synt

RE: ENCRYPT Syntax problem

2003-10-10 Thread Fortuno, Adam
, ensure the number of columns your inserting match the schema of the table - if not explicitly specify the columns. Regards, Adam -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, October 10, 2003 3:03 PM To: [EMAIL PROTECTED] Subject: ENCRYPT Syntax problem

ENCRYPT Syntax problem

2003-10-10 Thread elimachi
Dear list: I`m trying to insert some values into my table but I received a error message when I type:: INSERT INTO TABLE admin VALUES ('admin',ENCRYPT('system'),15,0); The error said: Error 1064: You have an error in SQL syntax. Could someone help me to clarify the correct syntax for ENCRYPT

sql syntax problem with mysql 3.23.49

2003-10-09 Thread Frederik Himpe
Hello, This sql query works fine with mysql 4.0.15, but it gives an error with mysql 3.23.49: SELECT officiele_naam, rechtsvorm, activiteit1, activiteit2, adres, postnummer, gemeente, Biogarantie, Hefboom, Netwerk_Vlaanderen, Vibe, Fair_Trade, NULL , Vosec, Solidr, Demeter, Europees_Ecolabel, B

re: syntax problem with replicate-rewrite-db

2002-11-20 Thread Victoria Reznichenko
David, Tuesday, November 19, 2002, 5:20:23 PM, you wrote: DN> (sorry if this is a duplicate -- I don't think the original made it) DN> Running mysql 3.23.53-max binary on a RedHat 7.2 based server. Replication DN> is working fine, but I'm running into errors with the replicate-rewrite-db DN> dir

syntax problem with replicate-rewrite-db

2002-11-19 Thread David Nedved
Hi All, (sorry if this is a duplicate -- I don't think the original made it) Running mysql 3.23.53-max binary on a RedHat 7.2 based server. Replication is working fine, but I'm running into errors with the replicate-rewrite-db directive. Here's a snippet from my my.cnf file on the slave: maste

syntax problem with replicate-rewrite-db

2002-11-18 Thread David Nedved
Hi All, Running mysql 3.23.52-max binary on a RedHat 7.2 based server. Replication is working fine, but I'm running into errors with the replicate-rewrite-db directive. Here's a snippet from my my.cnf file on the slave: master-port = 3306 replicate-rewrite-db=mysql->master_mysql When I

Re: syntax problem

2001-07-22 Thread Sara
sage - From: "Werner Stuerenburg" <[EMAIL PROTECTED]> To: "Sara" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Sunday, July 22, 2001 7:11 PM Subject: Re: syntax problem > > I rather thought that this was the whole purpose of this mailing list? > &g

Re: syntax problem

2001-07-22 Thread Werner Stuerenburg
> I rather thought that this was the whole purpose of this mailing list? You are right both in your inquiry and in your reply to Sinisa. It is not his usual way, though, I was astonished myself. I think most is ok. Try select handicap_results.date, handicap_results.victor, handic

Re: syntax problem

2001-07-22 Thread Sara
after all trying to learn mysql and am a beginner. Regards Sara - Original Message - From: "Sinisa Milivojevic" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Sunday, July 22, 2001 11:22 AM Subject: Re: syntax problem > Sar

Re: syntax problem

2001-07-22 Thread Sinisa Milivojevic
Sara writes: > Hi > > I have compiled a report using Mascon only to find I can't export it to any other >software I have! Great report but not much good to me as it is :-( > > (I'm not well versed in php yet, otherwise this might be an issue) > > However, I did get the sql query script and th

syntax problem

2001-07-21 Thread Sara
Hi I have compiled a report using Mascon only to find I can't export it to any other software I have! Great report but not much good to me as it is :-( (I'm not well versed in php yet, otherwise this might be an issue) However, I did get the sql query script and thought I could run it in Masc

Re: Syntax problem...

2001-04-10 Thread Peter Pentchev
On Tue, Apr 10, 2001 at 12:48:26PM +0200, Guerin Damien wrote: > Hi, > > How use CHECK constraint in a CREATE TABLE declaration ?? > The language used is MySQL > Indeed, i try many attempt but no success... Somebody could help me ?? > > I try to do that : > > create table Picsou ( > nam

Syntax problem...

2001-04-10 Thread Guerin Damien
Hi, How use CHECK constraint in a CREATE TABLE declaration ?? The language used is MySQL Indeed, i try many attempt but no success... Somebody could help me ?? I try to do that : create table Picsou ( name varchar(5) check (name=='fifi' or name=='riri' or name=='loulou') ) ; Bu

Syntax problem: mysqladmin start-slave

2001-01-25 Thread Kannan Narayanan
What is the CORRECT syntax for the mysqladmin command to start the slave thread at a particular position in the log? Here's the situation I ran into. I got an error message in the slave's .err file that said the following: 010125 9:11:16 Error running query, slave aborted. Fix the problem