Re: ERROR in syntax...

2014-09-06 Thread hsv
2014/09/06 09:06 -0700, Don Wieland Can anyone tell me why this query is generating an ERROR: Which error? The first "IF" statement is not properly ended? it isn't. (A series of equality tests against the same variable is done more conveniently with "CASE ... END CASE".) --

ERROR in syntax...

2014-09-06 Thread Don Wieland
Can anyone tell me why this query is generating an ERROR: DROP TRIGGER rtsadven_development.content_assets_after_insert_subtypes; CREATE TRIGGER `rtsadven_development`.`content_assets_after_insert_subtypes` AFTER INSERT ON `rtsadven_development`.`content_assets` FOR EACH ROW BEGIN IF N

Re: sql syntax error

2014-08-08 Thread Christophe
Hi, Le 08/08/2014 17:48, Johan De Meersman a écrit : > > As your code is french, I'll assume you're on Azerty; the backtick is Alt-Gr > plus the rightmost key (right next to return) on the middle row. Enjoy > spraining your fingers :-p > > /johan > Alt-GR plus '7' for French keyboard layout

Re: sql syntax error

2014-08-08 Thread Johan De Meersman
- Original Message - > From: "florent larose" > Subject: sql syntax error > > near ''membres2' WHERE > [...] > FROM 'espace_membre2'.'membres2' WHERE You were on the right path - mysql is wibbly about quotes. Either

sql syntax error

2014-08-08 Thread florent larose
hello, i am working on my personal website wih php 5.4.16 / mysql 5.6.12 (my system : windows 7 / wampserver 2). i have a bug when i am running my connection to database webpage. My error message is the following : Erreur SQL : You have an error in your SQL syntax; check the manual that

Re: alter table modify syntax error

2014-06-28 Thread Tim Dunphy
> > Given the title of the book is "Head First SQL" and not "Head First MySQL" > it probably isn't exclusively using syntax for MySQL. While SQL is a > standard the various SQL databases are not completely identical with the > syntax they support. This ma

RE: alter table modify syntax error

2014-06-28 Thread Jesper Wisborg Krogh
Hi Tim, > -Original Message- > From: Tim Dunphy [mailto:bluethu...@gmail.com] > Sent: Sunday, 29 June 2014 10:09 > To: Jesper Wisborg Krogh > Cc: mysql@lists.mysql.com > Subject: Re: alter table modify syntax error > > > > > The syntax "sixth"

Re: alter table modify syntax error

2014-06-28 Thread Tim Dunphy
> > The syntax "sixth" is not a supported syntax. You should use the syntax > "AFTER " where you replace with the column name > you want to position the modified column after. Oh thanks. That's actually what I ended up doing after I got frustrated with

RE: alter table modify syntax error

2014-06-28 Thread Jesper Wisborg Krogh
Hi Tim, > -Original Message- > From: Tim Dunphy [mailto:bluethu...@gmail.com] > Sent: Sunday, 29 June 2014 03:45 > Cc: mysql@lists.mysql.com > Subject: Re: alter table modify syntax error > > Hey guys, > > Sorry to hit you with one more. But I'm tryi

Re: alter table modify syntax error

2014-06-28 Thread Tim Dunphy
Hey guys, Sorry to hit you with one more. But I'm trying to use a positional statement in a column move based on what you all just taught me: mysql> alter table modify column color varchar(10) sixth; But I am getting this error: ERROR 1064 (42000): You have an error in your SQL synta

Re: alter table modify syntax error

2014-06-28 Thread Tim Dunphy
--+--+-+-++ >> 7 rows in set (0.03 sec) >> >> I am trying to position the 'color' column after the 'model' column with >> the following command: >> >> mysql> alter table car_table modify column color af

Re: alter table modify syntax error

2014-06-28 Thread Carsten Pedersen
owing command: mysql> alter table car_table modify column color after model; And I'm getting the following error: 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 'after model'

alter table modify syntax error

2014-06-28 Thread Tim Dunphy
table modify column color after model; And I'm getting the following error: 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 'after model' at line 1 I'm just wondering

Re: syntax to create a user called starsky

2012-02-29 Thread Chris Tate-Davies
On 29/02/12 12:38, Brown, Charles wrote: Hello, Can someone give me syntax to create a user called starsky and password hutch with the following objectives: - user the minimum to run back scripts - user has the minimum to lock tables - user has the minimum to do SELECT on tables Thx

Re: delete syntax

2011-12-02 Thread Govinda
>> >>> well, i am using delete/insert-statements since 10 years to maintain >>> users since you only have to know the tables in the database "mysql" >>> and use "flush privileges" after changes >>> >>> The privileges should be maintained only using the designated commands. >> You cannot rely on

Re: delete syntax

2011-12-02 Thread Reindl Harald
Am 02.12.2011 21:59, schrieb Claudio Nanni: > 2011/12/2 Reindl Harald > >> well, i am using delete/insert-statements since 10 years to maintain >> users since you only have to know the tables in the database "mysql" >> and use "flush privileges" after changes >> >> The privileges should be main

Re: delete syntax

2011-12-02 Thread Claudio Nanni
2011/12/2 Reindl Harald > well, i am using delete/insert-statements since 10 years to maintain > users since you only have to know the tables in the database "mysql" > and use "flush privileges" after changes > > The privileges should be maintained only using the designated commands. You cannot

Re: delete syntax

2011-12-01 Thread Reindl Harald
well, i am using delete/insert-statements since 10 years to maintain users since you only have to know the tables in the database "mysql" and use "flush privileges" after changes DROP USER is the only SINGLE COMMAND as long as you do not use table/column-privileges there are exactly two relevant

Re: delete syntax

2011-12-01 Thread Stdranwl
DROP USER command is the only command to remove any user and its association from all other tables. Cheers On Fri, Dec 2, 2011 at 8:22 AM, Reindl Harald wrote: > ALWAYS > start with "select * from mysql.user where user='mail_admin' and host like > '\%';" > and look what records are affected

Re: delete syntax

2011-12-01 Thread Reindl Harald
ALWAYS start with "select * from mysql.user where user='mail_admin' and host like '\%';" and look what records are affected to make sure the were-statement works as expected and then use "CURSOR UP" and edit the last command to "delete from" not only doing this while unsure with escapes protects

Re: delete syntax

2011-12-01 Thread Shiva
(0.00 sec) > > > sorry for not including enough information last time. > > best > tim > > - Original Message - > From: "Krishna Chandra Prajapati" > To: "Tim Dunphy" > Cc: mysql@lists.mysql.com > Sent: Thursday, December 1, 2011 9:03:46 PM

Re: delete syntax

2011-12-01 Thread Keith Keller
On 2011-12-02, Tim Dunphy wrote: > > Thanks but I probably should have noted that I only want to delete the > wildcard user. There are other users I would prefer to not delete. > > mysql> select user,host from mysql.user where user='mail_admin'; > ++---+ >| user

Re: delete syntax

2011-12-01 Thread Tim Dunphy
luding enough information last time. best tim - Original Message - From: "Krishna Chandra Prajapati" To: "Tim Dunphy" Cc: mysql@lists.mysql.com Sent: Thursday, December 1, 2011 9:03:46 PM Subject: Re: delete syntax delete from mysql.user where user='mail_admin'

Re: delete syntax

2011-12-01 Thread Krishna Chandra Prajapati
delete from mysql.user where user='mail_admin'; Krishna On Fri, Dec 2, 2011 at 7:23 AM, Tim Dunphy wrote: > hello list, > > I am attempting to delete a user from the mysql.user table without > success. > > mysql> delete from mysql.user where user='mail_admin@%'; > Query OK, 0 rows affected (

delete syntax

2011-12-01 Thread Tim Dunphy
hello list, I am attempting to delete a user from the mysql.user table without success. mysql> delete from mysql.user where user='mail_admin@%'; Query OK, 0 rows affected (0.00 sec) mysql> select user,host from mysql.user where user='mail_admin'; ++---+ | u

syntax for strings in REQUIRE ISSUER / REQUIRE SUBJECT

2011-03-19 Thread John Fawcett
I cannot seem to get SSL connections working using the REQUIRE ISSUER or REQUIRE SUBJECT clauses. I have a mysql working with ssl. I can connect from the client host to the server using ssl, where the user has been setup using: GRANT ALL PRIVILEGES ON x.* TO ''@'ipaddress' IDENTIFIED

MySQL 5.1 change master syntax issues?

2011-02-16 Thread Machiel Richards
ql-bin.000620’, master_log_pos=713184200; 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 '‘’, master_user=‘repladmin’, master_password=‘’' at line 1 I have confirmed that I am a

Re: stored procedure syntax error

2010-07-01 Thread Nilnandan Joshi
NDTIME=b; //wrong END $$ DELIMITER ; -- ERROR ------- Script line: 4 You have an error in your SQL syntax; check the manual that corresponds to your My

stored procedure syntax error

2010-07-01 Thread DAREKAR, NAYAN (NAYAN)
ERROR ------- Script line: 4 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 &#x

Re: [PHP] SQL Syntax

2010-06-16 Thread Joerg Bruehe
d on MULTIPLE attributes. >> >> So the result should only contain rows for images, that relate to an >> attribute ID = 1 (size) that is bigger than 100 AND!!! an attribute ID = >> 5 that equals 'jpg'. >> >> [[...]] You need to do a multi-table join

Re: [PHP] SQL Syntax

2010-06-16 Thread Nigel Wood
On Wed, 2010-06-16 at 08:59 +0100, Nigel Wood wrote: > I'd use: > drop temporary table if exists AttSearchMatches; > select pid as targetPid, count(*) as criteraMatched from B where > userId=35 and ( (b.aid=1 and b.value >50) OR (b.aid=3 and b.value > =4) ) group by pid having criteraMatched = 2; >

Re: [PHP] SQL Syntax

2010-06-16 Thread Nigel Wood
[ > I have 2 tables. Table A containing 2 fields. A user ID and a picture ID => > A(uid,pid) and another table B, containing 3 fields. The picture ID, an > attribute ID and a value for that attribute => B(pid,aid,value). > > Table B contains several rows for a single PID with various AIDs and value

Re: [PHP] SQL Syntax

2010-06-15 Thread Daniel Brown
[Top-post.] You'll probably have much better luck on the MySQL General list. CC'ed on this email. On Tue, Jun 15, 2010 at 20:58, Jan Reiter wrote: > Hi folks! > > I'm kind of ashamed to ask a question, as I haven't followed this list very > much lately. > > > > This isn't exactly a PHP

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
N keywords AS kw USING (image_id)" . "WHERE ky.image_id = im.image_id"; Gets me this error message. 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 'keywords AS kw USING (image_id)WHERE ky.image_id = im

Re: Join syntax problem

2010-04-26 Thread Rob Wultsch
lves, 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)" . > "WHERE ky.image_id = im.image_id"; > > Gets me this error message. > > You have an error in

Re: Join syntax problem

2010-04-26 Thread Tom Worster
, kw.hunter" . > "FROM *images AS im"."JOIN keywords AS kw USING (image_id)" . looks like there's no space between 'im' and 'JOIN' in the line above > "WHERE ky.image_id = im.image_id"; try: print($query); > > Gets me this

Join syntax problem

2010-04-26 Thread Gary
rds AS kw USING (image_id)" . "WHERE ky.image_id = im.image_id"; Gets me this error message. 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 'keywords AS kw USING (image_id)WHERE ky.image_id =

Re: Like Syntax

2009-12-07 Thread Johan De Meersman
Have you considered Reading The *Fine* Manual at http://dev.mysql.com/doc/#manual ? On Sat, Dec 5, 2009 at 4:59 PM, Victor Subervi wrote: > Hi; > I remember vaguely how to do this but don't know how to google it: > > show tables like categories$; > > such that it will return tables such as: > >

Re: Like Syntax

2009-12-05 Thread Victor Subervi
On Sat, Dec 5, 2009 at 11:09 AM, Michael Dykman wrote: > show tables like 'categories%'; > Thanks. V

Like Syntax

2009-12-05 Thread Victor Subervi
Hi; I remember vaguely how to do this but don't know how to google it: show tables like categories$; such that it will return tables such as: categoriesProducts, categoriesPrescriptions, etc. TIA, Victor

Re: Create Syntax (easy)

2009-09-29 Thread Victor Subervi
That's it! Thanks, V On Tue, Sep 29, 2009 at 12:13 PM, David Giragosian wrote: > On Tue, Sep 29, 2009 at 11:09 AM, Victor Subervi >wrote: > > > Hi; > > Please give me the syntax below such that I can force the insert > statements > > to use only select

Re: Create Syntax (easy)

2009-09-29 Thread David Giragosian
On Tue, Sep 29, 2009 at 11:09 AM, Victor Subervi wrote: > Hi; > Please give me the syntax below such that I can force the insert statements > to use only selected values ("item1", "item2", "item3"): > > create table (field SOMETHING_HERE item1 item2

Create Syntax (easy)

2009-09-29 Thread Victor Subervi
Hi; Please give me the syntax below such that I can force the insert statements to use only selected values ("item1", "item2", "item3"): create table (field SOMETHING_HERE item1 item2 item3, ... ) TIA, Victor

Re: Update Syntax

2009-07-26 Thread Victor Subervi
Perfect. Thank you. Victor On Sun, Jul 26, 2009 at 2:18 PM, Darryle Steplight wrote: > Hi Vicor, >Look into INSERT ON DUPLICATE or REPLACE statements. You need to > have a primary key or unique key for these too work. > > On Sun, Jul 26, 2009 at 1:11 PM, Victor Subervi > wrote: > > Hi; > > I

Re: Update Syntax

2009-07-26 Thread Darryle Steplight
Hi Vicor, Look into INSERT ON DUPLICATE or REPLACE statements. You need to have a primary key or unique key for these too work. On Sun, Jul 26, 2009 at 1:11 PM, Victor Subervi wrote: > Hi; > I would like to test the following: > > update maps set map where site=mysite; > > to see if there is s

Re: Update Syntax

2009-07-26 Thread Michael Dykman
from: http://dev.mysql.com/doc/refman/5.1/en/insert.html: INSERT [LOW_PRIORITY | DELAYED | HIGH_PRIORITY] [IGNORE] [INTO] tbl_name SET col_name={expr | DEFAULT}, ... [ ON DUPLICATE KEY UPDATE col_name=expr [, col_name=expr] ... ] The ON DUPLICATE KEY predicate tells you

Update Syntax

2009-07-26 Thread Victor Subervi
Hi; I would like to test the following: update maps set map where site=mysite; to see if there is such an entry in maps. If there is, then update. If there is not, then I would like to execute an insert statement. How do I do that? TIA, Victor

Re: LOAD DATA INFILE Syntax error

2009-06-29 Thread Ralph Kutschera
Johnny Withers schrieb: Group is a keyword in mysql: You need to put backticks around it in your statement: | LOAD DATA INFILE 'test.csv' INTO TABLE table | FIELDS TERMINATED BY ',' | LINES STARTING BY '' TERMINATED BY '\n' | (Page, Device, `GROUP` , ItemID, Item, Value); Ooookay. Thank

Re: LOAD DATA INFILE Syntax error

2009-06-29 Thread Johnny Withers
he third table,... Just to have an index. > > I'm using: > | LOAD DATA INFILE 'test.csv' INTO TABLE table > | FIELDS TERMINATED BY ',' > | LINES STARTING BY '' TERMINATED BY '\n' > | (Page, Device, GROUP , ItemID, Item, Value); > >

LOAD DATA INFILE Syntax error

2009-06-29 Thread Ralph Kutschera
27;\n' | (Page, Device, GROUP , ItemID, Item, Value); which gives me: | #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 'Group, ItemID, Item, Value)' at line 2 I cannot find the error. P

Re: SOS mysql signal syntax error

2009-05-20 Thread Alex Katebi
OK I tried this exact syntax and I get the same error. I tried it on mysql client for 6.0.10 On Wed, May 20, 2009 at 2:22 PM, Gavin Towey wrote: > Interesting. This syntax is only supposed to be available as of 5.4, but > it doesn't even work there. The reference I found was

RE: SOS mysql signal syntax error

2009-05-20 Thread Gavin Towey
Interesting. This syntax is only supposed to be available as of 5.4, but it doesn't even work there. The reference I found was at : http://dev.mysql.com/tech-resources/articles/mysql-54.html But I couldn't find other references to the new signal support. This is listed as the examp

SOS mysql signal syntax error

2009-05-20 Thread Alex Katebi
Hi Folks, I am getting syntax error with the mysql signal. I have a trigger that needs a signal for raising an error condition if a row with specific value is removed. CREATE TRIGGER my_trig BEFORE DELETE ON my_tbl FOR EACH ROW BEGIN DECLARE mysig CONDITION FOR SQLSTATE '

RE: What is wrong with this SYNTAX?

2009-05-19 Thread Rolando Edwards
ge- From: Rolando Edwards [mailto:redwa...@logicworks.net] Sent: Tuesday, May 19, 2009 12:40 PM To: Alex Katebi; mysql@lists.mysql.com Subject: RE: What is wrong with this SYNTAX? DELIMITER $$ CREATE TRIGGER bgp.tglobal BEFORE UPDATE on bgp.global FOR EACH ROW BEGIN IF STRCMP(NEW.Variable_na

RE: What is wrong with this SYNTAX?

2009-05-19 Thread Rolando Edwards
tebi [mailto:alex.kat...@gmail.com] Sent: Tuesday, May 19, 2009 10:33 AM To: mysql@lists.mysql.com Subject: What is wrong with this SYNTAX? It is complaining about near STRCMP. CREATE TRIGGER bgp.tglobal BEFORE UPDATE on bgp.global FOR EACH ROW BEGIN IF STRCMP(NEW.Variable_name,'A

What is wrong with this SYNTAX?

2009-05-19 Thread Alex Katebi
It is complaining about near STRCMP. CREATE TRIGGER bgp.tglobal BEFORE UPDATE on bgp.global FOR EACH ROW BEGIN IF STRCMP(NEW.Variable_name,'ASN') != 0 THEN set NEW.Variable_name=NULL; ELSEIF STRCMP(NEW.Variable_name, 'RouterId') != 0 THEN set NEW.Variable_name=NULL ELSEIF STRCM

RE: Confused about syntax for specific join with 3 tables

2009-05-17 Thread abdulazeez alugo
> Date: Sat, 16 May 2009 15:39:56 -0700 > From: davidmichaelk...@gmail.com > To: mysql@lists.mysql.com > Subject: Confused about syntax for specific join with 3 tables > > I've been doing some experimenting with the data model from the "MySQL" > book

Confused about syntax for specific join with 3 tables

2009-05-16 Thread David M. Karr
I've been doing some experimenting with the data model from the "MySQL" book (Addison Wesley). I have no trouble understanding joins between two tables, but I'm finding it's a little confusing when 3 or more tables are involved. I'm going to cite a particular set of tables and a specific quer

Re: Now() : SQL syntax error. But why?

2009-04-30 Thread Scott Haneda
Always echo out your SQL string, it will make it a lot more obvious. You want to see the result. I php concatenated string can be confusing at times. Also, you are not escaping your data, so if you had a word of 'stops, here' that would break it as well. So in your case, you very well m

Re: Now() : SQL syntax error. But why?

2009-04-30 Thread Antonio PHP
Thanks, Scott. I thought I couldn't have missed ','(comma) before. But today somehow it works... ;; I wasted hours figuring this out, but you saved me! Maybe I'm still a complete newbie! Thanks, again. Have a great day. :) On Thu, Apr 30, 2009 at 12:52 PM, Scott Haneda wrote: > > On Apr 29,

Re: Now() : SQL syntax error. But why?

2009-04-29 Thread Scott Haneda
On Apr 29, 2009, at 11:29 AM, Antonio PHP wrote: This is MySQL data structure. - I underlined where it causes the error message. (datetime) `id_Company` smallint(6) unsigned NOT NULL AUTO_INCREMENT, `Name` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL `Revenue` mediumint(6) NO

Re: Now() : SQL syntax error. But why?

2009-04-29 Thread Antonio PHP
e query and the table structure. timestamp fields > can have options set to auto update them, where order matters, and only one > field can support that feature. > > Please supply more data. > > > On Apr 28, 2009, at 2:18 PM, Antonio PHP wrote: > > You have an error in your

Re: Now() : SQL syntax error. But why?

2009-04-28 Thread Scott Haneda
syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Created = NOW(), Updated = NOW()' at line 8 'Created' and 'Updated' are set to datetime (InnoDB). The same syntax works for some newly created tables... and

Re: Now() : SQL syntax error. But why?

2009-04-28 Thread Martijn Engler
Can you please give the full table structure and query? On Tue, Apr 28, 2009 at 23:18, Antonio PHP wrote: > 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 'Created = NOW(), > Updated = NO

Now() : SQL syntax error. But why?

2009-04-28 Thread Antonio PHP
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 'Created = NOW(), Updated = NOW()' at line 8 'Created' and 'Updated' are set to datetime (InnoDB). The same syntax works for so

Re: mysqldump syntax - dumping only specific tables starting with a certain character. (e.g. z*)

2009-04-19 Thread Jim Lyons
actually, that was stupid of me - you need a list of tables not files. I think the only to do this, and the way we do it, is to run some command like: mysql -e"show tables in db-name like 'z%'" >tabnames Note the use of double-quotes and single-quotes. then use a loop to read the file "tabnames"

Re: mysqldump syntax - dumping only specific tables starting with a certain character. (e.g. z*)

2009-04-19 Thread Uwe Kiewel
>> Date: Sun, 19 Apr 2009 16:29:48 +0200 >> From: m...@kiewel-online.ch >> To: saeho...@hotmail.com >> CC: mysql@lists.mysql.com >> Subject: Re: mysqldump syntax - dumping only specific tables starting > with a certain character. (e.g. z*) >> >> -BEGI

RE: mysqldump syntax - dumping only specific tables starting with a certain character. (e.g. z*)

2009-04-19 Thread ChoiSaehoon
me. Plz tell me what I've done wrongly this time. :) > Date: Sun, 19 Apr 2009 16:29:48 +0200 > From: m...@kiewel-online.ch > To: saeho...@hotmail.com > CC: mysql@lists.mysql.com > Subject: Re: mysqldump syntax - dumping only specific tables starting with a > certain

Re: mysqldump syntax - dumping only specific tables starting with a certain character. (e.g. z*)

2009-04-19 Thread Uwe Kiewel
s' mean? (as in linux command 'ls'?) you have to use the ` sign, not the ' Uwe > > :) > > >> Date: Sun, 19 Apr 2009 08:53:36 -0500 >> Subject: Re: mysqldump syntax - dumping only specific tables starting with a >> certain character. (e.

RE: mysqldump syntax - dumping only specific tables starting with a certain character. (e.g. z*)

2009-04-19 Thread ChoiSaehoon
I tried it, then it gives the following error message mysqldump: Can't get CREATE TABLE for table 'ls z*' (Table '(db-name).ls z*' doesn't exist) What does 'ls' mean? (as in linux command 'ls'?) :) > Date: Sun, 19 Apr 2009 08:53:36

Re: mysqldump syntax - dumping only specific tables starting with a certain character. (e.g. z*)

2009-04-19 Thread Jim Lyons
try something like: mysqldump -u(user) -p (db-name) `ls z*` > (filename) 2009/4/19 ChoiSaehoon > > Is there a way to dump only specific tables starting with a certain > character? > > > > For example, I only want to dump tables starting with the character 'z'. > > The following doesn't work. >

mysqldump syntax - dumping only specific tables starting with a certain character. (e.g. z*)

2009-04-19 Thread ChoiSaehoon
Is there a way to dump only specific tables starting with a certain character? For example, I only want to dump tables starting with the character 'z'. The following doesn't work. mysqldump -u(user) -p (db-name) z* > (filename) Do I have to use regular expression here? Please hel

Re: Creating table syntax error with mysql 5.0!

2008-11-15 Thread Peter Brawley
5) -> *);* Works without the asterisks. PB - jean claude babin wrote: I'm new with MySQL server 5.0 ,I tried to create a table MemberDetails from the mysql command shell, I got an error 1064 (42000): *You have an error in your SQL syntax*; Here is my code: m

Creating table syntax error with mysql 5.0!

2008-11-15 Thread jean claude babin
I'm new with MySQL server 5.0 ,I tried to create a table MemberDetails from the mysql command shell, I got an error 1064 (42000): *You have an error in your SQL syntax*; Here is my code: mysql> CREATE TABLE memberDetails -> *(* ->memberId INT NOT NULL

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: INSERT WHERE NOT EXISTS syntax

2008-01-23 Thread roger.maynard
else . -Original Message- From: roger.maynard [mailto:[EMAIL PROTECTED] Sent: 23 January 2008 18:58 To: mysql@lists.mysql.com Subject: INSERT WHERE NOT EXISTS syntax Can anyone tell me why this isn't working... v5.0 INSERT INTO master_comments (comment_no,comment

INSERT WHERE NOT EXISTS syntax

2008-01-23 Thread roger.maynard
Can anyone tell me why this isn't working... v5.0 INSERT INTO master_comments (comment_no,comment_text,language_id) SELECT comment_no,comment_text,language_id from mComments WHERE NOT EXISTS (SELECT comment_no FROM master_comments); I thought I had it working once but now it isn't? Ro

RE: Count syntax

2007-09-28 Thread Beauford
Thanks to all. > -Original Message- > From: Michael Dykman [mailto:[EMAIL PROTECTED] > Sent: September 28, 2007 1:36 PM > To: Beauford > Cc: mysql@lists.mysql.com > Subject: Re: Count syntax > > 1 means that 1 will be added to the sum if the condition >

RE: Count syntax

2007-09-28 Thread Weston, Craig \(OFT\)
attachments. Please notify the sender immediately by reply e-mail and delete the e-mail from your system. -Original Message- From: Michael Dykman [mailto:[EMAIL PROTECTED] Sent: Friday, September 28, 2007 1:36 PM To: Beauford Cc: mysql@lists.mysql.com Subject: Re: Count syntax 1 means

Re: Count syntax

2007-09-28 Thread Michael Dykman
1 and 0 do in this - > SUM(IF(supportertype = 'L', 1, 0)) > > > -Original Message- > > From: Baron Schwartz [mailto:[EMAIL PROTECTED] > > Sent: September 28, 2007 1:00 PM > > To: Beauford > > Cc: mysql@lists.mysql.com > > Subject: Re

RE: Count syntax

2007-09-28 Thread Beauford
Thanks - it works, but what does the 1 and 0 do in this - SUM(IF(supportertype = 'L', 1, 0)) > -Original Message- > From: Baron Schwartz [mailto:[EMAIL PROTECTED] > Sent: September 28, 2007 1:00 PM > To: Beauford > Cc: mysql@lists.mysql.com > Subject: Re: Coun

Re: Count syntax

2007-09-28 Thread Baron Schwartz
Beauford wrote: Hi, I have the following line of code and I keep getting wrong results from it. Can someone let me know what I'm doing wrong here. I just can't quite figure out the syntax that I need. select count(*) as numrows, count(supportertype) as leadcar from regis

Count syntax

2007-09-28 Thread Beauford
Hi, I have the following line of code and I keep getting wrong results from it. Can someone let me know what I'm doing wrong here. I just can't quite figure out the syntax that I need. select count(*) as numrows, count(supportertype) as leadcar from registrar where supportertype = &#

errors in mysql syntax

2007-09-27 Thread RAMYA
( UserID ) REFERENCES TimeTracker.TT_Users ( UserID ) As iam new to this mysql when i was doing the program mysql shows the error as You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the

Re: Syntax Error in Stored Procedure

2007-08-13 Thread Tom Khoury
Thanks. That fixed the problem. I put all of my DECLARE statements at the beginning of the procedure. I finally got the thing to compile and it looks like this: DELIMITER $$ DROP PROCEDURE IF EXISTS `code_library`.`Search_Code_Samples` $$ CREATE [EMAIL PROTECTED] PROCEDURE `Search_Code_Sampl

RE: Syntax Error in Stored Procedure

2007-08-13 Thread Price, Randall
Information Technology 1700 Pratt Drive Blacksburg, VA 24060 Email: [EMAIL PROTECTED] Phone: (540) 231-4396 -Original Message- From: Tom Khoury [mailto:[EMAIL PROTECTED] Sent: Monday, August 13, 2007 2:38 PM To: mysql@lists.mysql.com Subject: Syntax Error in Stored Procedure Below is a

Syntax Error in Stored Procedure

2007-08-13 Thread Tom Khoury
END IF; 97: 98:-- Construct the final SQL statement. 99: IF (Filter_Clause = '') THEN 100:SET Final_SQL = Base_SQL; 101: ELSE 102:SET Final_SQL = concat(Base_SQL, 'WHERE ', Filter_Clause); 103:END IF; 104: 105:-- Execute the constructed SQL Stateme

Re: syntax to revoke

2007-06-12 Thread Stephen Liu
--- Baron Schwartz <[EMAIL PROTECTED]> wrote: > Stephen Liu wrote: > >> If you want to > >> get rid of the user entirely, use DROP USER. > > > > Could you please explain in more detail??? Where shall I add "DROP > > USER" > > The

Re: syntax to revoke

2007-06-12 Thread Baron Schwartz
Stephen Liu wrote: If you want to get rid of the user entirely, use DROP USER. Could you please explain in more detail??? Where shall I add "DROP USER" The manual always explains the full syntax (http://dev.mysql.com/), but in brief, DROP USER 'vmailuser'@'loc

Re: syntax to revoke

2007-06-12 Thread Stephen Liu
--- Baron Schwartz <[EMAIL PROTECTED]> wrote: > OK, the privileges are gone. USAGE is a synonym for "no privileges." Noted with tks. > If you want to > get rid of the user entirely, use DROP USER. Could you please explain in more detail??? Where shall I add "DROP USER" > > To safe guard,

Re: syntax to revoke

2007-06-12 Thread Baron Schwartz
Stephen Liu wrote: mysql> SHOW GRANTS FOR 'vmailuser'@'localhost'; +--+ | Grants for [EMAIL PROTECTED]

Re: syntax to revoke

2007-06-12 Thread Stephen Liu
Hi Baron, > > I suppose it has been done ??? > > Yes, but you can check with SHOW GRANTS FOR 'vmailuser'@'localhost' > to be sure. mysql> SHOW GRANTS FOR 'vmailuser'@'localhost'; +

Re: syntax to revoke

2007-06-12 Thread Baron Schwartz
Hi, Stephen Liu wrote: Hi Baron, Tks for your advice. To undo this GRANT, run REVOKE SELECT, INSERT, UPDATE, DELETE ON test.* FROM 'vmailuser'@'localhost'; mysql> REVOKE SELECT, INSERT, UPDATE, DELETE ON test.* FROM 'vmailuser'@'localhost'; Query OK, 0 rows affected (0.00 sec) mysql>

Re: syntax to revoke

2007-06-12 Thread Stephen Liu
Hi Baron, Tks for your advice. > To undo this GRANT, run > > REVOKE SELECT, INSERT, UPDATE, DELETE ON test.* FROM > 'vmailuser'@'localhost'; mysql> REVOKE SELECT, INSERT, UPDATE, DELETE ON test.* FROM 'vmailuser'@'localhost'; Query OK, 0 rows affected (0.00 sec) mysql> I suppose it has bee

Re: syntax to revoke

2007-06-12 Thread Baron Schwartz
ec) I found I made a mistake to run it. I need to revoke the GRANT given to vmailuser to test database. I found on; 13.5.1.5. REVOKE Syntax http://dev.mysql.com/doc/refman/5.0/en/revoke.html The syntax; REVOKE ALL PRIVILEGES, GRANT OPTION FROM user [, user] but can't resolve whethe

syntax to revoke

2007-06-12 Thread Stephen Liu
un it. I need to revoke the GRANT given to vmailuser to test database. I found on; 13.5.1.5. REVOKE Syntax http://dev.mysql.com/doc/refman/5.0/en/revoke.html The syntax; REVOKE ALL PRIVILEGES, GRANT OPTION FROM user [, user] but can't resolve whether retaining the 1st 'user' and

Re: Syntax error

2007-01-08 Thread Mungbeans
.date DESC , o.status, u.username LIMIT 0 , 30 -- View this message in context: http://www.nabble.com/Syntax-error-tf2938979.html#a8216881 Sent from the MySQL - General mailing list archive at Nabble.com. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscrib

  1   2   3   4   5   6   7   8   9   10   >