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

RE: syntax question..

2004-11-14 Thread kalin mintchev
. you may also cause a conflict by using the database alias (t1) as the name of the result Peter -Original Message- From: kalin mintchev [mailto:[EMAIL PROTECTED] Sent: 14 November 2004 23:06 To: [EMAIL PROTECTED] Subject: syntax question.. hi everybody.. can somebody please explain

Re: syntax question..

2004-11-14 Thread Adam
Kalin, Kalin thanks to all... yes, Rhino - i'm new. my first Kalin post. the version is the problem indeed. it's Kalin 4.0.13-standard. how would i achieve the same Kalin query in this version?... You'll need to provide the following: (1) What is the result you want to achieve? (2) What are the

Re: syntax question..

2004-11-14 Thread kalin mintchev
Kalin, Kalin thanks to all... yes, Rhino - i'm new. my first Kalin post. the version is the problem indeed. it's Kalin 4.0.13-standard. how would i achieve the same Kalin query in this version?... You'll need to provide the following: (1) What is the result you want to achieve? well:

Re: syntax question..

2004-11-14 Thread Rhino
- 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

SQL syntax error

2004-11-13 Thread Stuart Felenstein
VendorJobs.Industry = '2','3','4','5'Query 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 '.Industry = '2','3','4','5'' at line 2 The first is the printout of my statement followed by the mysql_error . Here

Re: SQL syntax error

2004-11-13 Thread Jim Winstead
On Sat, Nov 13, 2004 at 12:30:43PM -0800, Stuart Felenstein wrote: $sql = SELECT PostStart, JobTitle, Industry, LocationState, VendorID FROM VendorJobs; echo $sql; //if ($Ind) $sql .= WHERE VendorJobs.Industry = $s_Ind; As you can see above s_ind is an array , comma delimited.

Re: SQL syntax error

2004-11-13 Thread Stuart Felenstein
--- Jim Winstead [EMAIL PROTECTED] wrote: You can't compare a column with a comma-delimited list of numbers like that... What should the seperator be then ? Thank you Stuart -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:

Re: SQL syntax error

2004-11-13 Thread Jim Winstead
On Sat, Nov 13, 2004 at 12:46:12PM -0800, Stuart Felenstein wrote: --- Jim Winstead [EMAIL PROTECTED] wrote: You can't compare a column with a comma-delimited list of numbers like that... What should the seperator be then ? My point was that you can't compare a column with an

Re:[SOLVED] SQL syntax error

2004-11-13 Thread Stuart Felenstein
--- Jim Winstead [EMAIL PROTECTED] wrote: My point was that you can't compare a column with an array of numbers using the '=' operator. You have to use the IN operator, as in the line of code I posted: Thank you Jim , it's working now! Stuart -- MySQL General Mailing List For list

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.NationalityPlural, C.NationalityAdjective FROM

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 head[DATABASE CONNECTION]/head body div class=formdiv

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 that

deleting from multiple tables syntax error

2004-11-10 Thread cmetcalf
I had a working query that suddenly doesn't work anymore. It follows the syntax found in the documentation at http://dev.mysql.com/doc/mysql/en/DELETE.html specifically, DELETE FROM t1, t2 USING t1, t2, t3 WHERE t1.id=t2.id AND t2.id=t3.id; my query is: DELETE FROM rsrc_linx_specialty USING

Re: deleting from multiple tables syntax error

2004-11-10 Thread Michael Stassen
anymore. It follows the syntax found in the documentation at http://dev.mysql.com/doc/mysql/en/DELETE.html specifically, DELETE FROM t1, t2 USING t1, t2, t3 WHERE t1.id=t2.id AND t2.id=t3.id; my query is: DELETE FROM rsrc_linx_specialty USING rsrc_linx_specialty rls, rsrc_linx rl, rsrc_linx_type

Re: deleting from multiple tables syntax error

2004-11-10 Thread cmetcalf
with this syntax didn't work, because the environment didn't support it; chalk it up to 'human error' this time 'round. I appreciate the quick reply. Cameron Did you upgrade to 4.0.17 or 4.1.7? In 4.1, you have to use the alias between FROM and USING: DELETE FROM rls USING rsrc_linx_specialty rls

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

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

Re: SQL Syntax Problem

2004-11-10 Thread Ligaya Turmelle
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... Failed to run SELECT F.IDArea

Re: Advanced SELECT Syntax Help Needed!

2004-11-06 Thread Frederic Wenzel
On Fri, 5 Nov 2004 17:49:29 -0500, Rhino [EMAIL PROTECTED] wrote: I'm not sure why you want to use a subquery; if MySQL is anything like DB2, a join usually performs better than a subquery and the optimizer converts a subquery to a join (under the covers) whenever it can anyway. Therefore, how

RE: Advanced SELECT Syntax Help Needed!

2004-11-06 Thread Monique
SELECT Syntax Help Needed! On Fri, 5 Nov 2004 17:49:29 -0500, Rhino [EMAIL PROTECTED] wrote: I'm not sure why you want to use a subquery; if MySQL is anything like DB2, a join usually performs better than a subquery and the optimizer converts a subquery to a join (under the covers) whenever

Advanced SELECT Syntax Help Needed!

2004-11-05 Thread Monique
Hi! I would love some help with my syntax (or another strategy). I keep bombing. I've simplified it. Here is the deal: Three files: Main: id, name Links1: id, linkname1 (a record may or may not exist for each record in Main) Links2: id, linkname2 (a record may or may not exist for each

Re: Advanced SELECT Syntax Help Needed!

2004-11-05 Thread Rhino
main m right outer join links1 l1 on m.id = l1.id right outer join links l2 on m.id = l2.id; I haven't tested it but it ought to work. Rhino - Original Message - From: Monique [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, November 05, 2004 4:59 PM Subject: Advanced SELECT Syntax

Re: join syntax

2004-10-14 Thread Michael Stassen
select * from a join b on a.x = b.y; works on mySQL 3.23.56 but doesn't work on mySQL 3.23.58. I had to change it in select * from a,b where a.x = b.y; Is it a well-known behavior or is it a bit strange? Thanks, Marco The join on syntax works on 3.23.56 but doesn't work on 3.23.58 Repeating

Re: join syntax

2004-10-13 Thread Michael Stassen
What do you mean, it doesn't work? Michael Marco wrote: The query select * from a join b on a.x = b.y; works on mySQL 3.23.56 but doesn't work on mySQL 3.23.58. I had to change it in select * from a,b where a.x = b.y; Is it a well-known behavior or is it a bit strange? Thanks, Marco -- MySQL

newbie ALTER syntax help

2004-09-23 Thread leegold
alter table keywords change key_id page_id int(10) unsigned NOT NULL PK auto_increment; 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 'PK auto_increment' at line 1 I'm trying to change

Re: newbie ALTER syntax help

2004-09-23 Thread Paul DuBois
At 12:12 -0400 9/23/04, leegold wrote: alter table keywords change key_id page_id int(10) unsigned NOT NULL PK auto_increment; 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 'PK

Re: newbie ALTER syntax help

2004-09-23 Thread leegold
On Thu, 23 Sep 2004 15:51:56 -0500, Paul DuBois [EMAIL PROTECTED] said: At 12:12 -0400 9/23/04, leegold wrote: alter table keywords change key_id page_id int(10) unsigned NOT NULL PK auto_increment; ERROR 1064 (42000): You have an error in your SQL syntax; check the manual

Re: Joins Syntax

2004-09-12 Thread Michael Stassen
is a red flag. I expect that you got too many results and threw that in as a fix. It should be possible to get exactly what you want, making that unneccesary. And I cannot imagine why you'd want to order by userID. Appreciate if someone can show me the right syntax. Graham Simplifying to keep

Joins Syntax

2004-09-11 Thread Graham
options_totals LEFT JOIN options_names ON options_names.ID = options_totals.nameID LEFT JOIN options ON options.ID = options_totals.optionID LEFT JOIN users_options ON options_totals.optionID = users_options.optionID WHERE userID 3 ORDER BY userID Appreciate if someone can show me the right syntax

Correct date query syntax

2004-08-26 Thread Yong Wang
Hi, All: I have a database which contains date attribute in string format (like 2004-08-12). I want to genearte a report based on period time. I use the syntax: date1 ='2004-08-12' date2='2004-08-18' SELECT * FROM account WHERE (TO_DAYS(date) = TODAYS(date1)) and (TO_DAYS(date) = TO_DAYS(date2

Re: Correct date query syntax

2004-08-26 Thread Jochem van Dieten
On Thu, 26 Aug 2004 11:31:46 -0500, Yong Wang [EMAIL PROTECTED] wrote: I have a database which contains date attribute in string format (like 2004-08-12). I want to genearte a report based on period time. I use the syntax: date1 ='2004-08-12' date2='2004-08-18' SELECT * FROM account

Re: Correct date query syntax

2004-08-26 Thread SGreen
format (like 2004-08-12). I want to genearte a report based on period time. I use the syntax: date1 ='2004-08-12' date2='2004-08-18' SELECT * FROM account WHERE (TO_DAYS(date) = TODAYS(date1)) and (TO_DAYS(date) = TO_DAYS(date2)); The report script complains the condition after WHERE clause

Assistance with SQL syntax: pulling duplicates back

2004-08-17 Thread Eve Atley
administration. -- I can't decide if this is my code, or the SQL syntax. Would it be possible, based on this statement, to have pulled back duplicates from the same record? - Eve -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http

Re: Assistance with SQL syntax: pulling duplicates back

2004-08-17 Thread Michael Stassen
Over 10 years of HTML experience. 2 years networking administration. -- I can't decide if this is my code, or the SQL syntax. Would it be possible, based on this statement, to have pulled back duplicates from the same record? - Eve -- MySQL General Mailing List For list archives: http

RE: Assistance with SQL syntax: pulling duplicates back

2004-08-17 Thread Victor Pendleton
You have a cartesian join because you do not have join criteria between the resume and candidate tables. -Original Message- From: Eve Atley To: [EMAIL PROTECTED] Sent: 8/17/04 12:22 PM Subject: Assistance with SQL syntax: pulling duplicates back I think this is an easy question...I've

Re: Assistance with SQL syntax: pulling duplicates back

2004-08-17 Thread SGreen
network php Over 10 years of HTML experience. 2 years networking administration. -- I can't decide if this is my code, or the SQL syntax. Would it be possible, based on this statement, to have pulled back duplicates from the same record? - Eve -- MySQL

Re: Assistance with SQL syntax: pulling duplicates back

2004-08-17 Thread Michael Stassen
if this is my code, or the SQL syntax. Would it be possible, based on this statement, to have pulled back duplicates from the same record? - Eve -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Assistance with SQL syntax: pulling duplicates back

2004-08-17 Thread Michael Stassen
Eve, Best to keep threads on the list. Others may have better ideas, and future readers may benefit. The comparison candidate.Location IN ('CA', 'California') will match 'CA' and 'California', but will not match 'Cupertino, CA' because it isn't either of those strings. To match that row as

RE: SQL Syntax Question

2004-08-04 Thread Karl-Heinz Schulz
-Heinz Schulz; [EMAIL PROTECTED] Subject: Re: SQL Syntax Question - Original Message - From: Karl-Heinz Schulz [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 03, 2004 9:18 PM Subject: SQL Syntax Question I tried to get an answer on the PHP mailing list and I was told

Re: SQL Syntax Question

2004-08-04 Thread Philippe Poelvoorde
Karl-Heinz Schulz wrote: Thank you for trying to help me. The output is wrong I get either Event 1 Event 2 Details 1 for event 1 Details 2 for event 1 Details 3 for event 1 that query is wrong : $eventdetail_query = mysql_query(select informations, titles, file_name from eventdetail, event where

RE: SQL Syntax Question

2004-08-04 Thread Karl-Heinz Schulz
] Sent: Wednesday, August 04, 2004 5:52 AM To: Karl-Heinz Schulz Cc: [EMAIL PROTECTED] Subject: Re: SQL Syntax Question Karl-Heinz Schulz wrote: Thank you for trying to help me. The output is wrong I get either Event 1 Event 2 Details 1 for event 1 Details 2 for event 1 Details 3

Re: SQL Syntax Question

2004-08-04 Thread Rhino
- Original Message - From: Karl-Heinz Schulz [EMAIL PROTECTED] To: 'Philippe Poelvoorde' [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, August 04, 2004 6:41 AM Subject: RE: SQL Syntax Question Philippe, I changed my to the following but the result is now (I deleted

SQL Syntax Question

2004-08-03 Thread Karl-Heinz Schulz
I tried to get an answer on the PHP mailing list and I was told that this list would be quicker to get me a solution. I have two tables Event and Eventdetails (structures dump can be found at the end of the message). I want to display all events and the related information from the eventdetails

Re: SQL Syntax Question

2004-08-03 Thread Rhino
- Original Message - From: Karl-Heinz Schulz [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 03, 2004 9:18 PM Subject: SQL Syntax Question I tried to get an answer on the PHP mailing list and I was told that this list would be quicker to get me a solution. I have two

multiple table delete syntax question

2004-07-25 Thread doug
I have a question about the multiple table delete syntax. First the documentation on the website is very clear. My question is why not how. The 'delete from using' is not ambiguous (to me). My question is about the form: delete t1 from t1,t2 where ... I would take this to mean remove matching

Re: multiple table delete syntax question

2004-07-25 Thread Michael Stassen
[EMAIL PROTECTED] wrote: I have a question about the multiple table delete syntax. First the documentation on the website is very clear. My question is why not how. The 'delete from using' is not ambiguous (to me). My question is about the form: delete t1 from t1,t2 where ... I would take

Re: multiple table delete syntax question

2004-07-25 Thread doug
I have no problem understanding the syntax, or how to do what I want (at least after my first mistake). It is more about if this is a consistant grammar. For example, unix commands have the form verb src object, except for ln -s (IMO). From a lexical view, I do not think the two forms

Views Syntax for MySQL 5

2004-06-22 Thread Nic Skitt [Real Productions]
Hi All, I have noticed a lack of comments re Views. Is it 5.0 or 5.1 that we will have Views capability? I had hoped it was in the most up to date public development release of 5. Unless I am getting the Views syntax wrong I assume its not there. If it is not already packaged in V5.0

Re: Views Syntax for MySQL 5

2004-06-22 Thread Josh Trutwin
getting the Views syntax wrong I assume its not there. If it is not already packaged in V5.0 then will the syntax be the standard SQL view syntax? The online manual is your friend: http://dev.mysql.com/doc/mysql/en/index.html First hit for searching on views: http://dev.mysql.com/doc/mysql

Re: Views Syntax for MySQL 5

2004-06-22 Thread Andrew Pattison
Un-named views are supposed to be there already. I know this is not the real thing, I just thought I would mention it. ;-) Cheers Andrew. - Original Message - From: Josh Trutwin [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 22, 2004 5:53 PM Subject: Re: Views Syntax

Questions about MySQL's INSERT syntax....

2004-06-17 Thread Scott Fletcher
Hi! The SQL's INSERT Syntax that have been frequently been used is --snip-- INSERT INTO TABLE1 (COLUMN1,COLUMN2,COLUMN3,COLUMN4,COLUMN5) VALUES ('ONE','TWO','THREE','FOUR','FIVE') --snip-- where the TABLE1 have 5 columns, COLUMN1, COLUMN2, COLUMN3, COLUMN4, COLUMN5. What I wanna know

re: Questions about MySQL's INSERT syntax....

2004-06-17 Thread Scott Johnson
Hi Scott, Yes this will work. But, you the columns you are leaving out, must be auto fill or allow blank/Null entries. Scotty. Original Message: From: Scott Fletcher [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Questions about MySQL's INSERT syntax Date: Thu, 17 Jun 2004 12:28:16

Re: Questions about MySQL's INSERT syntax....

2004-06-17 Thread SGreen
INSERT syntax PM

Re: Questions about MySQL's INSERT syntax....

2004-06-17 Thread Chukkala Bhaskar
: Hi! The SQL's INSERT Syntax that have been frequently been used is --snip-- INSERT INTO TABLE1 (COLUMN1,COLUMN2,COLUMN3,COLUMN4,COLUMN5) VALUES ('ONE','TWO','THREE','FOUR','FIVE') --snip-- where the TABLE1 have 5 columns, COLUMN1, COLUMN2, COLUMN3, COLUMN4, COLUMN5. What I wanna

Create table syntax question

2004-06-16 Thread eifion herbert (IAH-C)
), CONSTRAINT chk_loc CHECK (LOC in ('Loc1', 'Loc2', 'Loc3')); And it says I have a syntax error. I've been through the manual and can't spot what I've done wrong. Anyone? -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL

RE: Create table syntax question

2004-06-16 Thread Mike Johnson
(25), CONSTRAINT fk_grp FOREIGN KEY (GROUP) REFERENCES GROUPS(GPNAME), CONSTRAINT chk_loc CHECK (LOC in ('Loc1', 'Loc2', 'Loc3')); And it says I have a syntax error. I've been through the manual and can't spot what I've done wrong. Anyone? I'm willing to bet that it's because DESC

Re: Create table syntax question

2004-06-16 Thread Michael Stassen
) REFERENCES GROUPS(GPNAME), CONSTRAINT chk_loc CHECK (LOC in ('Loc1', 'Loc2', 'Loc3')); And it says I have a syntax error. I've been through the manual and can't spot what I've done wrong. Anyone? DESC is a reserved word. Best bet would be to choose a different name, but if you must name

RE: Create table syntax question

2004-06-16 Thread eifion herbert (IAH-C)
. -Original Message- From: Michael Stassen [mailto:[EMAIL PROTECTED] Sent: 16 June 2004 16:43 To: eifion herbert (IAH-C) Cc: [EMAIL PROTECTED] Subject: Re: Create table syntax question eifion herbert (IAH-C) wrote: Hi, Probably a very basic question. I'm trying to a create

Re: Create table syntax question

2004-06-16 Thread Michael Stassen
] Subject: Re: Create table syntax question eifion herbert (IAH-C) wrote: Hi, Probably a very basic question. I'm trying to a create a table in mySQL 4.0.15 thus: create table VACANCIES( VACREF char(6) NOT NULL PRIMARY KEY, TITLE varchar(60), LOC varchar(9), DESC text, STARTDATE date, GROUP

MySQL -- SQL syntax error.....

2004-06-16 Thread Scott Fletcher
When I use this SQL statement, ... --snip-- UPDATE BUSINESS_CATEGORY SET (BUSINESS_CATEGORY.BUS_CAT,BUSINESS_CATEGORY.BUS_DESC) = ('JUNKKK','JUNK123KK') WHERE BUSINESS_CATEGORY.BUS_CAT_ID = '733788' --snip-- I get the SQL syntax error saying, --snip-- You have an error in your SQL syntax

RE: MySQL -- SQL syntax error.....

2004-06-16 Thread Mike Johnson
From: Scott Fletcher [mailto:[EMAIL PROTECTED] When I use this SQL statement, ... --snip-- UPDATE BUSINESS_CATEGORY SET (BUSINESS_CATEGORY.BUS_CAT,BUSINESS_CATEGORY.BUS_DESC) = ('JUNKKK','JUNK123KK') WHERE BUSINESS_CATEGORY.BUS_CAT_ID = '733788' --snip-- I get the SQL syntax error

Re: MySQL -- SQL syntax error.....

2004-06-16 Thread SGreen
: Fax to: 06/16/2004 04:08 Subject: MySQL -- SQL syntax error

syntax error

2004-05-31 Thread Bob Lockie
I want to do something like this: delete from records where records.id in (select audit_log_records.id from audit_log_records, audit_log where audit_log.tracker_id=audit_log_records.tracker_id and audit_log.operation='D'); -- MySQL General Mailing List For list archives:

Error 1064 (Syntax error) after adding ENUM or Set types to table definition

2004-05-24 Thread Bartis, Robert M (Bob)
I created the dump file from my current DB to make adjustments and also migrate to Innodb tables. In the process I have tried to add some ENUM types in select table. Obviously, I am doing something wrong as each one give me a syntax error 1064 when I try to source in the text file. I've read

Re: Error 1064 (Syntax error) after adding ENUM or Set types to table definition

2004-05-24 Thread Michael Stassen
to make adjustments and also migrate to Innodb tables. In the process I have tried to add some ENUM types in select table. Obviously, I am doing something wrong as each one give me a syntax error 1064 when I try to source in the text file. I've read the manual and do not see where my error is. Can

Problem with like wildcard syntax

2004-05-18 Thread Matt Mastrangelo
I'm running version 4.1.1-alpha. The 3 select statements below on the following test table produce inconsitent results: create table test (test varchar(20)) charset latin1 collate latin1_general_cs; insert into test values ('abcField1'); insert into test values ('abcField2'); insert into test

Re: Problem with like wildcard syntax

2004-05-18 Thread Paul DuBois
At 11:53 -0400 5/18/04, Matt Mastrangelo wrote: I'm running version 4.1.1-alpha. The 3 select statements below on the following test table produce inconsitent results: create table test (test varchar(20)) charset latin1 collate latin1_general_cs; insert into test values ('abcField1'); insert

Re: How to dump data in db.table syntax?

2004-05-13 Thread Nico Sabbi
, so they only executes statements like insert into db.table values() This behavior breaks replication when I use mysqldump -h local -a -B db | mysql -h master Yes, but the second syntax (with use db) should replicate if you use replicate-do-db=db. I understood that you

Re: How to dump data in db.table syntax?

2004-05-12 Thread Sergei Golubchik
the current slaves that are configured to replicate-wild-do-table=db.% because there's no db.table syntax, so the slaves discard the insert. Maybe adding replicate-do-db=db (for all of my dbs) will do the trick? sorry for replying to myself, but I verified that adding replicate-do-db=db

Re: How to dump data in db.table syntax?

2004-05-12 Thread Nico Sabbi
-h master that works correctly on the new_server, but totally messes up the current slaves that are configured to replicate-wild-do-table=db.% because there's no db.table syntax, so the slaves discard the insert. Maybe adding replicate-do-db=db (for all of my dbs

Re: How to dump data in db.table syntax?

2004-05-12 Thread Sergei Golubchik
() but this doesn't happen: the directive replicate-wild-do-table=db.% seems to control the behaviour of the slaves, so they only executes statements like insert into db.table values() This behavior breaks replication when I use mysqldump -h local -a -B db | mysql -h master Yes, but the second syntax

Re: How to dump data in db.table syntax?

2004-05-12 Thread Nico Sabbi
local -a -B db | mysql -h master Yes, but the second syntax (with use db) should replicate if you use replicate-do-db=db. I understood that you tried it, and it didn't work ? Exactly. In my.cnf I have both: replicate-do-db=db replicate-wild-do-table=db.% but only insert into db.table

Re: How to dump data in db.table syntax?

2004-05-12 Thread Egor Egorov
happen: the directive replicate-wild-do-table=db.% seems to control the behaviour of the slaves, so they only executes statements like insert into db.table values() This behavior breaks replication when I use mysqldump -h local -a -B db | mysql -h master Yes, but the second syntax (with use

Re: How to dump data in db.table syntax?

2004-05-12 Thread Nico Sabbi
mysqldump -h local -a -B db | mysql -h master Yes, but the second syntax (with use db) should replicate if you use replicate-do-db=db. I understood that you tried it, and it didn't work ? Exactly. In my.cnf I have both: replicate-do-db=db replicate-wild-do-table=db.% but only

Re: How to dump data in db.table syntax?

2004-05-12 Thread Sergei Golubchik
() This behavior breaks replication when I use mysqldump -h local -a -B db | mysql -h master Yes, but the second syntax (with use db) should replicate if you use replicate-do-db=db. I understood that you tried it, and it didn't work ? Exactly. In my.cnf I have both: replicate-do-db

How to dump data in db.table syntax?

2004-05-11 Thread Nico Sabbi
Hi, as the title says mysqldump 4.0.18 (and previous versions) doesn't want to dump data in the format insert into db.table values() not even using -e or -a. Is there any other cli switch that can do this? Another question: is there a way to dump all dbs that DON'T match a pattern without

Re: How to dump data in db.table syntax?

2004-05-11 Thread Egor Egorov
Nico Sabbi [EMAIL PROTECTED] wrote: Hi, as the title says mysqldump 4.0.18 (and previous versions) doesn't want to dump data in the format insert into db.table values() not even using -e or -a. Is there any other cli switch that can do this? No, but if you use -B option of mysqldump

Re: How to dump data in db.table syntax?

2004-05-11 Thread Nico Sabbi
from the local server to the master I usually run mysqldump -B db -h local | mysql -h master that works correctly on the new_server, but totally messes up the current slaves that are configured to replicate-wild-do-table=db.% because there's no db.table syntax, so the slaves discard

Re: How to dump data in db.table syntax?

2004-05-11 Thread Nico Sabbi
=db.% because there's no db.table syntax, so the slaves discard the insert. Maybe adding replicate-do-db=db (for all of my dbs) will do the trick? sorry for replying to myself, but I verified that adding replicate-do-db=db to my.cnf doesn't work as I expected -- MySQL General Mailing List

RE: Need correct 'order by' syntax where field does not contain NULL

2004-05-04 Thread Mike Johnson
From: Eve Atley [mailto:[EMAIL PROTECTED] Hi. I had a MySQL DB set up and recently added a field 'order' to allow for exceptions in a web site menu heirarchy. Fields should be ordered by 'order' field first where it does not contain 'NULL', and then by field 'title'. I had this

RE: Need correct 'order by' syntax where field does not contain NULL

2004-05-04 Thread Chris DaMour
; [EMAIL PROTECTED] Subject: RE: Need correct 'order by' syntax where field does not contain NULL From: Eve Atley [mailto:[EMAIL PROTECTED] Hi. I had a MySQL DB set up and recently added a field 'order' to allow for exceptions in a web site menu heirarchy. Fields should be ordered by 'order' field

Re: Need correct 'order by' syntax where field does not contain NULL

2004-05-04 Thread Michael Stassen
Mike Johnson wrote: From: Eve Atley [mailto:[EMAIL PROTECTED] Hi. I had a MySQL DB set up and recently added a field 'order' to allow for exceptions in a web site menu heirarchy. Fields should be ordered by 'order' field first where it does not contain 'NULL', and then by field 'title'. I

Need correct 'order by' syntax where field does not contain NULL

2004-05-03 Thread Eve Atley
Hi. I had a MySQL DB set up and recently added a field 'order' to allow for exceptions in a web site menu heirarchy. Fields should be ordered by 'order' field first where it does not contain 'NULL', and then by field 'title'. I had this previously: select * from navigation WHERE id =

Re: Need correct 'order by' syntax where field does not contain NULL

2004-05-03 Thread Daniel Clark
select * from navigation WHERE id = '.$category.' AND active='y' AND order IS NOT null ORDER BY order, title Hi. I had a MySQL DB set up and recently added a field 'order' to allow for exceptions in a web site menu heirarchy. Fields should be ordered by 'order' field first where it does not

RE: Need correct 'order by' syntax where field does not contain NULL

2004-05-03 Thread Dathan Vance Pattishall
WHERE id = id = '$category.' AND active ='y' AND order is not NULL ORDER by order,title -Original Message- From: Eve Atley [mailto:[EMAIL PROTECTED] Sent: Monday, May 03, 2004 2:24 PM To: [EMAIL PROTECTED] Subject: Need correct 'order by' syntax where field does not contain NULL

If() syntax question

2004-04-21 Thread Don Dachner
Is it possible to do something like this? If(select * from xxx, if record found..update it, if record not found ..insert it) Thanks, Don

RE: If() syntax question

2004-04-21 Thread Mike Johnson
From: Don Dachner [mailto:[EMAIL PROTECTED] Is it possible to do something like this? If(select * from xxx, if record found..update it, if record not found ..insert it) Try the REPLACE INTO syntax: http://dev.mysql.com/doc/mysql/en/REPLACE.html -- Mike Johnson Web Developer Smarter

Syntax problems in MySQL v. 4.1.1-alpha-standard-log

2004-04-21 Thread cristopher pierson ewing
Apologies if this is an easy one, I'm stumped! I'm having some trouble with syntax running MySQL from the command line. I'm running MySQL 4.1.1-alpha from the OS X standard installer package on a G5 running panther. I have logged into MySQL as the root user, providing the correct password

Re: Syntax problems in MySQL v. 4.1.1-alpha-standard-log

2004-04-21 Thread Paul DuBois
At 15:42 -0700 4/21/04, cristopher pierson ewing wrote: Apologies if this is an easy one, I'm stumped! I'm having some trouble with syntax running MySQL from the command line. I'm running MySQL 4.1.1-alpha from the OS X standard installer package on a G5 running panther. I have logged into MySQL

sql syntax error

2004-04-20 Thread Aaron P. Martinez
debug Error in config file /etc/amavisd.conf: syntax error at /etc/amavisd.conf line 829, near ' ORDER BY users.priority DESC '; Here are the lines from my /etc/amavisd.conf file: $sql_select_policy = 'SELECT *,users.vuid FROM users,policy_names'. ' WHERE (users.policy=policy_names.id

Re: syntax error on create

2004-04-12 Thread Victoria Reznichenko
warwick mayson [EMAIL PROTECTED] wrote: I am new to mysql and have a create script that when sourced throws a syntax error. The script : CREATE TABLE employee ( id INTEGER UNSIGNED NOT NULL AUTO_INCREMENT, name VARCHAR(255) NOT NULL, PRIMARY KEY(id) ) TYPE=InnoDB; CREATE TABLE

syntax error on create

2004-04-10 Thread warwick mayson
hi I am new to mysql and have a create script that when sourced throws a syntax error. The script : CREATE TABLE employee ( id INTEGER UNSIGNED NOT NULL AUTO_INCREMENT, name VARCHAR(255) NOT NULL, PRIMARY KEY(id) ) TYPE=InnoDB; CREATE TABLE position ( id INTEGER UNSIGNED NOT NULL

Re: Create Table Syntax

2004-04-03 Thread Khashan
Thanks a lot, I think I have enough to validate the syntax (sort of). Ahmad Khashan Michael Stassen [EMAIL PROTECTED] wrote: Khashan wrote: **None of these are table level modifiers** Sorry, I guess I used the wrong terminology. I am aware of the table options available. What I meant

Re: Create Table Syntax

2004-04-02 Thread Michael Stassen
Khashan wrote: Thanks for the reply. It seems like the syntax for create_table/create_definition should have 2 part-2 modifiers I think you are misreading the syntax. That is, I think you are confusing the index-related create_definitions with the table_options. 1- one part-2 'column

Re: Create Table Syntax

2004-04-02 Thread Khashan
: Khashan wrote: Thanks for the reply. It seems like the syntax for create_table/create_definition should have 2 part-2 modifiers I think you are misreading the syntax. That is, I think you are confusing the index-related create_definitions with the table_options. 1- one part-2 'column

Re: Create Table Syntax

2004-04-02 Thread Michael Stassen
Khashan wrote: **None of these are table level modifiers** Sorry, I guess I used the wrong terminology. I am aware of the table options available. What I meant is additional definitions after the columns have been defined. Sorry I misunderstood you. Now, do I understand that you are saying

Create Table Syntax

2004-04-01 Thread Khashan
I am looking at the syntax for creating table( section 6.5.3 of the manual): CREATE [TEMPORARY] TABLE [IF NOT EXISTS] tbl_name [(create_definition,...)] [table_options] [select_statement] and: create_definition: part-1 (- inserted by me for reference) col_name type [NOT NULL | NULL

Re: Create Table Syntax

2004-04-01 Thread Rhino
- Original Message - From: Khashan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, April 01, 2004 1:04 PM Subject: Create Table Syntax I am looking at the syntax for creating table( section 6.5.3 of the manual): CREATE [TEMPORARY] TABLE [IF NOT EXISTS] tbl_name

Re: Create Table Syntax

2004-04-01 Thread Khashan
Thanks for the reply. It seems like the syntax for create_table/create_definition should have 2 part-2 modifiers 1- one part-2 'column' modifiers for the each column. and 2- another part-2 table modifiers for the table as a whole ? ( at the end of column definitions). two questions

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