Syntax errors when creating HEAP tables and using IF NOT EXISTS

2001-09-16 Thread Robert Peters
We developed a site using PHP and MYSQL on an online shared server. We used HEAP tables extensively and everything worked fine. When we moved the site to our dedicated server prior to launching the site, the queries that should create the HEAP tables return syntax errors (when submitting the

Syntax Help - CANCEL

2001-09-16 Thread mickalo
payid and p.badcheck != '0.00') >>I've been trying to figure out where I might be going wrong with this SQL syntax: >> >>select format(sum(p.badcheck)+ (count(p.badcheck)*-15)) as Badcheck >>from payout p,payhistory ph >>where ph.paydate between '

Syntax Help

2001-09-16 Thread mickalo
I've been trying to figure out where I might be going wrong with this SQL syntax: select format(sum(p.badcheck)+ (count(p.badcheck)*-15)) as Badcheck from payout p,payhistory ph where ph.paydate between '2001-09-20' and '2001-09-30' and (p.payid = ph.payid and p.badche

mysql-doc.thml, duplication in INSERT syntax

2001-09-07 Thread Hans Ginzel
>Description: There is duplication in the syntax of INSERT. Last version is special case of the second. INSERT [LOW_PRIORITY | DELAYED] [IGNORE] [INTO] tbl_name [(col_name,...)] VALUES (expression,...),(...),... or INSERT [LOW_PRIOR

How to get "TABLENAME.FIELDNAME" syntax in the return values from MySQL

2001-09-05 Thread Terje Kristensen
MySQL to return with the syntax "TABLENAME.FIELDNAME", and not just "FIELDNAME" ? I know that you can use aliases to get a similar effect but it's a hassle to write sql's like this : SELECT table1.f1 as 'table1.f1',table2.f1 as 'table2.f1' F

Re: Syntax Question: deleting previous duplicate entries

2001-08-30 Thread Ed Carp
Tom Churm ([EMAIL PROTECTED]) writes: > hi, > > i've got a table collecting info from html forms. problem is, certain > wiseguys always make multiple entries. could someone clue me in to how > i can select the Last entry where there is a duplicate for the User > (type text, these are email add

Syntax Question: deleting previous duplicate entries

2001-08-30 Thread Tom Churm
hi, i've got a table collecting info from html forms. problem is, certain wiseguys always make multiple entries. could someone clue me in to how i can select the Last entry where there is a duplicate for the User (type text, these are email addresses), and automatically delete any previous entr

Re: SQL syntax near 'IDENTIFIED BY'...

2001-08-28 Thread Grigory Bakunov
Date |Tue, 28 Aug 2001 15:14:54 +0500 >From |Alexander Barkov <[EMAIL PROTECTED]> Hello! AB> Hello! AB> These query produces an SQL syntax error AB> in 3.23.29a-gamma: AB> GRANT ALL PRIVILEGES ON databases.* AB> TO 'foo'@'localhost' IDENTIFI

SQL syntax near 'IDENTIFIED BY'...

2001-08-28 Thread Alexander Barkov
Hello! These query produces an SQL syntax error in 3.23.29a-gamma: GRANT ALL PRIVILEGES ON databases.* TO 'foo'@'localhost' IDENTIFIED BY 'bar'; SHOW TABLES FROM databases; Probably this is because of "databases" is a keyword. However,

Re: Create Table Syntax for DEFAULT

2001-08-23 Thread Paul DuBois
At 5:18 PM -0700 8/23/01, Igbar Foosenhopper wrote: >Is it possible to use current_date (mysql function) to generate a >default for a column? No. Defaults must be constants. http://www.mysql.com/doc/C/R/CREATE_TABLE.html > >If so .. what would the syntax look like. I have t

Create Table Syntax for DEFAULT

2001-08-23 Thread Igbar Foosenhopper
Is it possible to use current_date (mysql function) to generate a default for a column? If so .. what would the syntax look like. I have tried several things and it doesn't seem to like it. If not .. how could I generate a default of todays date (of course dependent on the date of i

Re: "syntax error" in SQL query that works when hard-coded in?

2001-08-13 Thread Bennett Haselton
Thanks for pushing me in the right direction :) It turns out that it wasn't the semicolon on the end of $sql_query -- it was the newline. I had been invoking it as follows: ./rundatabasequery.cgi sql_query=SELECT+*+FROM+newssites_dynamicdata%3B%0D%0A and the "%0D%0A" was a hex-encoded newline

Re: "syntax error" in SQL query that works when hard-coded in?

2001-08-13 Thread Ian Barwick
On Sunday 12 August 2001 01:01, Bennett Haselton wrote: > I've written a CGI script that runs a database query on a MySQL database (I > know that's risky -- it's password-protected though, for what it's > worth). (...) It's a free world ;-) > When I run the script with the first of these two lin

Re: REGEXP syntax

2001-07-27 Thread tj marlin
Mark: the key to this puzzle is the separator, the ';' for your first question, you need to find the ';' followed by a 6. not just any ';', but the first ';' the pattern would be "^[0-9]*;6" which says ^ find beginning of line [0-9]* followed by zero or more instance

Re: Correct DISTINCT syntax for MYSQL version 3.22.32

2001-07-27 Thread Grigory Bakunov
Date |Thu, 26 Jul 2001 21:11:20 +0100 >From |"Graham Nichols" <[EMAIL PROTECTED]> Hello! GN> Hi Grigory, GN> your query below only runs without error if I leave out the word DISTINCT. >> SELECT web_date, dayofmonth(web_date) AS d, COUNT(DISTINCT IP_address) AS c >> FROM web_stats GROUP BY d OR

Re: Correct DISTINCT syntax for MYSQL version 3.22.32

2001-07-27 Thread Grigory Bakunov
N> which does not give me time to upgrade. GN> I have a small table 'web-stats' consisting of the following fields: GN> IP_address GN> web_date GN> web_time GN> web_referer GN> browser GN> page GN> I am using a PHP script to insert entries into this table

Re: Correct DISTINCT syntax

2001-07-27 Thread Graham Nichols
pt to insert entries into this table as a rudimentary hit counter. My current syntax is select web_date, dayofmonth(web_date) as d, count (IP_address) as c from web_stats group by d order by web_date but what I actually want is to count the unique IP addresses for each date. How can I work aroun

RE: Correct DISTINCT syntax for MYSQL version 3.22.32

2001-07-27 Thread Don Read
ble 'web-stats' consisting of the following fields: > > IP_address > web_date > web_time > web_referer > browser > page > > I am using a PHP script to insert entries into this table as a rudimentary > hit counter. > My current syntax is > > select we

REGEXP syntax

2001-07-27 Thread Mark Worsdall
Hi, Trying to get to grips with regexp but really want to 1st get a simple expression working with mysql. SELECT Sequence, Message, id FROM $sqlTable WHERE Sequence REGEXP(\"^$filterValue;\") The above works for finding matched values, where the number = to $filterValue is in in the 1st part

Correct DISTINCT syntax for MYSQL version 3.22.32

2001-07-26 Thread Graham Nichols
ddress web_date web_time web_referer browser page I am using a PHP script to insert entries into this table as a rudimentary hit counter. My current syntax is select web_date, dayofmonth(web_date) as d, count (IP_address) as c from web_stats group by d order by web_date but what I actually want is to c

Re: Please help with syntax !!!

2001-07-25 Thread Maes Jean-Claude
: "Zbigniew Szczesny" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 25, 2001 5:40 PM Subject: Please help with syntax !!! Hello ! This is a syntax taken from MS Access: SELECT messages.message_id, messages_1.message_id FROM messages AS messages_1 INNER JOI

Re: Please help with syntax !!!

2001-07-25 Thread Stephen Adkins
parent messages which have no children (via "connections") or not. If so, you would need to enhance the suggested SQL with some MySQL version of INNER or OUTER join syntax. At 05:40 PM 7/25/2001 +0200, Zbigniew Szczesny wrote: >Hello ! > >This is a syntax taken from M

Please help with syntax !!!

2001-07-25 Thread Zbigniew Szczesny
Hello ! This is a syntax taken from MS Access: SELECT messages.message_id, messages_1.message_id FROM messages AS messages_1 INNER JOIN (messages INNER JOIN connections ON messages.message_id = connections.parent) ON messages_1.message_id = connections.child ORDER BY messages.message_id

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
I did get the sql query script and thought I could run it in Mascon itself >and export the data table to excel which would do for now. > > However, this syntax appears to produce exactly the query I want in the report tool >but doesn't appear to work when cut and past into the sql

syntax problem

2001-07-21 Thread Sara
run it in Mascon itself and export the data table to excel which would do for now. However, this syntax appears to produce exactly the query I want in the report tool but doesn't appear to work when cut and past into the sql query option in mascon. Can you tell me where the query is wrong p

Re: Mysql syntax

2001-07-20 Thread Allen Grace
- Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, July 21, 2001 12:33 PM Subject: Mysql syntax > If I wanted to asssign John Doe to system1, how would I write the statement in sql to pull the sysid from the > system table via the sy

Mysql syntax

2001-07-20 Thread temu-jin
I have been trying to figure out how to do this, and I am sure that I am just overlooking somthing small. Suppose I create two tables as follows: CREATE TABLE system ( sysid INT NOT NULL UNSIGNED AUTO_INCREMENT PRIMARY KEY, sysname VARCHAR(12), os VARCHAR(10), cpumhz INT ); CRE

Re: MySQL: Multiple INSERTS syntax ...

2001-07-18 Thread Allen Grace
- Original Message - From: "Philippe L. Houze" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, July 19, 2001 8:09 AM Subject: MySQL: Multiple INSERTS syntax ... > When running: INSERT INTO customers3 (firstname) select TRIM(trailing > char(10) FR

MySQL: Multiple INSERTS syntax ...

2001-07-18 Thread Philippe L. Houze
Hi, I found syntax for INSERT command in both Paul DuBois excellent book and online manual but for single insert. And it works... which for a newbie like me is thrilling. But, I am stuck for multiple inserts. I am trying to remove from a database trailing characters (ascii 10) that have shown

AW: Outer join syntax..

2001-07-16 Thread Stephan Skusa
MySQL uses the LEFT JOIN, RIGHT JOIN Syntax ... RTFM: http://www.mysql.com/doc/J/O/JOIN.html > -Ursprüngliche Nachricht- > Von: Bruce Stewart [mailto:[EMAIL PROTECTED]] > Gesendet: Montag, 16. Juli 2001 11:54 > An: Mysql-Help (E-mail) > Betreff: Outer join syntax

Outer join syntax..

2001-07-16 Thread Bruce Stewart
outer joins be expressed in the FROM clause as they can in Oracle (using (+)) and MSSQL (using '*=' or '=*')? What is the syntax? I think I have looked through the documentation thoroughly enough, that this question is not a waste of anyone's time. If this is dealt w

RE: Join syntax

2001-07-11 Thread Dinkler, Fred
.1443| || -- |__|__| || || ooO Ooo -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 10, 2001 12:58 PM To: Werner Stuerenburg Cc: [EMAIL PROTECTED] Subject: Re: Join syntax I have two databases (db1 e db2) on different hosts (host1 e host

Re: Join syntax

2001-07-10 Thread Siomara Pantarotto
This topic really interested me. Can an expert of the list explain a good approach handle distributed system with distributed databases? thanks siomara >From: <[EMAIL PROTECTED]> >To: Werner Stuerenburg <[EMAIL PROTECTED]> >CC: [EMAIL PROTECTED] >Subject: Re: Join s

Re: Join syntax

2001-07-10 Thread rodneyr
wouldn't have problem, because the table_reference would be "db1.table1 AS t1, db2.table2 AS t2". But as they are on different machines, I didn't know the syntax of the table_reference or even if it was possible. Thanks, Rodney Werner Stuerenburg <[EMAIL PROTECTED]&

Re: Fwd: Join syntax

2001-07-10 Thread William R. Mussatto
D] > Cc: [EMAIL PROTECTED] > Subject: Fwd: Join syntax > > > Is it possible to join two tables from different databases that are located > on different hosts? > > Thanks, > > Rodney > > > > - &

Re: Join syntax

2001-07-10 Thread Werner Stuerenburg
As it seems, it is not possible. You would have to have a connection which talks to two databases at once, which may not be possible at all, at least create numerous problems. But I think it should be possible to create a temporary table in db 2 and copy the table from db1 into it, then do a join

Join syntax

2001-07-10 Thread rodneyr
Is it possible to join two tables from different databases that are located on different hosts? Thanks, Rodney - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/

Fwd: Join syntax

2001-07-09 Thread Rodney A. Ramos
Is it possible to join two tables from different databases that are located on different hosts? Thanks, Rodney - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/

Re: Join syntax

2001-07-09 Thread Jeremy Zawodny
On Mon, Jul 09, 2001 at 09:29:00PM -0300, Rodney A. Ramos wrote: > > Is it possible to join two tables from different databases that are > located on different hosts? Nope. -- Jeremy D. Zawodny, <[EMAIL PROTECTED]> Technical Yahoo - Yahoo Finance Desk: (408) 349-7878Fax: (408) 349-5454C

Join syntax

2001-07-09 Thread Rodney A. Ramos
Is it possible to join two tables from different databases that are located on different hosts? Thanks, Rodney - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/

Join syntax

2001-07-09 Thread Rodney A. Ramos
Is it possible to join two tables from different databases that are located on different hosts? Thanks, Rodney - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/

RE: Join syntax

2001-07-09 Thread Chris Bolt
> Is it possible to join two columns from different databases Yes. > located on differents hosts? No. Why do you want to do this? - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lis

Join syntax

2001-07-09 Thread rodneyr
Is it possible to join two columns from different databases located on differents hosts? Thanks, Rodney - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/

Re: Syntax question for a beginner..

2001-07-05 Thread { randy }
You are the man...thanks a bunch! that's what I needed. = r a n d y / sesser at mac.com > From: "Rolf Hopkins" <[EMAIL PROTECTED]> > Date: Fri, 6 Jul 2001 14:39:59 +0800 > To: "{ randy }" <[EMAIL PROTECTED]>, "MySQL&

Re: Syntax question for a beginner..

2001-07-05 Thread Rolf Hopkins
that are in B but not in A. - Original Message - From: "{ randy }" <[EMAIL PROTECTED]> To: "MySQL" <[EMAIL PROTECTED]> Sent: Friday, July 06, 2001 14:05 Subject: Re: Syntax question for a beginner.. > Well, I think I got it figured out. I am using PHP,

Re: Syntax question for a beginner..

2001-07-05 Thread { randy }
ow you can't do nested selects :\ - randy = r a n d y / sesser at mac.com > From: "Rolf Hopkins" <[EMAIL PROTECTED]> > Date: Fri, 6 Jul 2001 13:57:27 +0800 > To: "{ randy }" <[EMAIL PROTECTED]>, "MySQL" <[EMAIL PROTECTED]

Re: Syntax question for a beginner..

2001-07-05 Thread Rolf Hopkins
both tableA and tableB, without the duplicates. - Original Message - From: "{ randy }" <[EMAIL PROTECTED]> To: "MySQL" <[EMAIL PROTECTED]> Sent: Friday, July 06, 2001 12:28 Subject: Syntax question for a beginner.. > Alright, I am about to pull my hair out.

RE: Syntax question for a beginner..

2001-07-05 Thread Bomber Steel
. Black Holes The End of The Universe? John G. Taylor PG 11. Line 1 -Original Message- From: { randy } [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 05, 2001 10:29 PM To: MySQL Subject: Syntax question for a beginner.. Alright, I am about to pull my hair out. I have 2 tables. Each have

RE: Syntax question for a beginner..

2001-07-05 Thread Siomara Pantarotto
I had never seen "WHERE NOT" before. Does this exist in mysql siomara >From: Shania Qiu <[EMAIL PROTECTED]> >To: '{ randy }' <[EMAIL PROTECTED]> >CC: [EMAIL PROTECTED] >Subject: RE: Syntax question for a beginner.. >Date: Fri, 6 Jul

RE: Syntax question for a beginner..

2001-07-05 Thread Shania Qiu
I remember somewhere has mentioned that MySQL does not copy with nested SELECT query. Properly it is the reason. Shania Qiu -Original Message- From: { randy } [mailto:[EMAIL PROTECTED]] Sent: Friday, 6 July 2001 4:29 p.m. To: MySQL Subject: Syntax question for a beginner.. Alright

Syntax question for a beginner..

2001-07-05 Thread { randy }
l FROM tableA WHERE NOT (email IN(SELECT email FROM tableB)); Now, this gives me an error at the second SELECT. I have been trying different ways, but no go. I got the general syntax from a friend, but I could not get it to work. Is my syntax just wrong? mysql Ver 11.13 Distrib 3.23.36, for -fre

Re: I get SYNTAX ERROR 1064 with mySQL 3.2.3 when using delete as shown (a correction)

2001-06-29 Thread Gerald Clark
MySQL doen not yet support nested queries. Jawad Khan wrote: > server version 3.23.35 > > >> -Original Message- >> From:Khan, Jawad [COLE:6S34:EXCH] >> Sent:Thursday, June 28, 2001 1:13 PM >> To: '[EMAIL PROTECTED]' &

RE: I get SYNTAX ERROR 1064 with mySQL 3.2.3 when using delete a

2001-06-28 Thread Don Read
On 28-Jun-01 Jawad Khan wrote: > Hope you can find the problem in the following SQL command: > > delete from alarms where raiseTime = ( select MIN(raiseTime) from alarms) > limit 1 ; > That is a sub-select, currently unsupported in MySQL. try : delete from alarms order by raiseTime limit 1;

RE: I get SYNTAX ERROR 1064 with mySQL 3.2.3 when using delete as shown (a correction)

2001-06-28 Thread Jawad Khan
server version 3.23.35 > -Original Message- > From: Khan, Jawad [COLE:6S34:EXCH] > Sent: Thursday, June 28, 2001 1:13 PM > To: '[EMAIL PROTECTED]' > Subject: I get SYNTAX ERROR 1064 with mySQL 3.2.3 when using delete > as shown > > Ho

I get SYNTAX ERROR 1064 with mySQL 3.2.3 when using delete as sho wn

2001-06-28 Thread Jawad Khan
Hope you can find the problem in the following SQL command: delete from alarms where raiseTime = ( select MIN(raiseTime) from alarms) limit 1 ; raiseTime is of type BIGINT.

Re: Conversion from Access JOIN syntax to MySQL JOIN syntax...

2001-06-26 Thread Joshua J. Kugler
inal Message - > From: "Joshua J. Kugler" <[EMAIL PROTECTED]> > To: "MySQL" <[EMAIL PROTECTED]> > Sent: Wednesday, June 27, 2001 2:47 > Subject: Conversion from Access JOIN syntax to MySQL JOIN syntax... > > > Yes, I've read the

Re: Conversion from Access JOIN syntax to MySQL JOIN syntax...

2001-06-26 Thread Rolf Hopkins
2:47 Subject: Conversion from Access JOIN syntax to MySQL JOIN syntax... > Yes, I've read the docs on JOIN syntax, and search the list archives for > similar information. > > I have this query: > > SELECT leg_activity.activity_date, leg_transitions.trans_desc, > leg_text.le

Conversion from Access JOIN syntax to MySQL JOIN syntax...

2001-06-26 Thread Joshua J. Kugler
Yes, I've read the docs on JOIN syntax, and search the list archives for similar information. I have this query: SELECT leg_activity.activity_date, leg_transitions.trans_desc, leg_text.leg_version, body_list.body_name FROM (((leg_version_hist RIGHT JOIN (leg_comm_hist RIGHT JOIN leg_act

Left Join Syntax

2001-06-06 Thread dan
Here it goes. This is a small schema of the two tables. Table Employees i_recid = auto increment UNIQUE KEY First Name Last Name ETC. Table Contracts sales_rep = e.i_recid Contract Date = date of contract Office = office So here is what i am trying to do. Run a

RE: Servlet SELECT Query syntax error

2001-05-30 Thread David Lidström
CTED]] Sent: den 30 maj 2001 15:09 To: [EMAIL PROTECTED] Subject: Servlet SELECT Query syntax error Hi Error message "You have error in your SQL syntax" ... Using Apache Tomcat - MySQL in Win 2000. Scenario: Servlet collects form data value, sends query to MySQL, returns search. The problem

Servlet SELECT Query syntax error

2001-05-30 Thread Lucy
Hi Error message "You have error in your SQL syntax" ... Using Apache Tomcat - MySQL in Win 2000. Scenario: Servlet collects form data value, sends query to MySQL, returns search. The problem is getting the value of the inputted parameter named, title_name. Problem c

RE: The Syntax to Get JDBC Connection

2001-05-21 Thread Siomara Pantarotto
this.password = newPassword; } public String getPassword() { return password; } } *** >From: "Cal Evans" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> >CC: <[EMAIL

RE: The Syntax to Get JDBC Connection

2001-05-20 Thread Cal Evans
If that's an exact quote then you left off the opening quote marks. Cal http://www.calevans.com -Original Message- From: Li Bing [mailto:[EMAIL PROTECTED]] Sent: Saturday, May 19, 2001 4:14 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: The Syntax to Get JDBC Connection

The Syntax to Get JDBC Connection

2001-05-20 Thread Li Bing
Dear All, I use mm.mysql.jdbc to access mysql in Java. To get the connection, the following sentence is writen in my program. But an error occurred. I guess that the syntax is wrong. Could you please give me the correct one. Connection conn = DriverManager.getConnection(jdbc:mysql://localhost

Re: create table with select syntax error problem

2001-05-17 Thread Mark Rowlands
- > From: "Mark Rowlands" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, May 17, 2001 3:11 > Subject: create table with select syntax error problem > > > CREATE TABLE Ftt (sajtid smallint(6) DEFAULT '0' NOT NULL,count int(10) &

Re: create table with select syntax error problem

2001-05-16 Thread Rolf Hopkins
Original Message - From: "Mark Rowlands" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, May 17, 2001 3:11 Subject: create table with select syntax error problem > CREATE TABLE Ftt (sajtid smallint(6) DEFAULT '0' NOT NULL,count int(

Re: WHERE OR Syntax

2001-05-16 Thread Vadim P.
rator does not > return any results, and the <=> operator returns a syntax error at the >. I > am hopelessly confused. > > SELECT > listings.lid,listings.Price,Area.Area,listings.Description,listings.Sold,lis > tings.MLS_Number FROM listings LEFT JOIN Companies ON

create table with select syntax error problem

2001-05-16 Thread Mark Rowlands
CREATE TABLE Ftt (sajtid smallint(6) DEFAULT '0' NOT NULL,count int(10) unsigned DEFAULT '0' NOT NULL,PRIMARY KEY (sajtid)) select log.sajtid,count(*) from log,sajter where log.sajtid=sajter.id and log.mon = 5 group by log.sajtid; the create table on its own works, the select statement works,

WHERE OR Syntax

2001-05-16 Thread JD Daniels
any results, and the <=> operator returns a syntax error at the >. I am hopelessly confused. SELECT listings.lid,listings.Price,Area.Area,listings.Description,listings.Sold,lis tings.MLS_Number FROM listings LEFT JOIN Companies ON (listings.cid=Companies.cid) LEFT JOIN Area ON (list

Re[2]: select query syntax

2001-05-02 Thread Igor V Yermakov
no , i havn't any key with AUTO_INCREMENT option i wont numbered my rows on fly! how to do it. pleease help me!!! RT> supposed you numbered all rows in the table incrementally in field nid: RT> select mydata from mytable where mod(nid, N)=offset; RT> fill in N and offset (0..n-1) RT> On Sat, 28

Re: Syntax error

2001-04-30 Thread Eric Fitzgerald
> To: <[EMAIL PROTECTED]> Sent: Monday, April 30, 2001 12:17 PM Subject: Syntax error > > hi everyone in this group, i am getting lately mysql syntax error when i run query from JSP page. here is sample code: > > public selectMyPass (String userid) { > > St

Syntax error

2001-04-30 Thread Ryan
hi everyone in this group, i am getting lately mysql syntax error when i run query from JSP page. here is sample code: public selectMyPass (String userid) { String myQuery = "select pass from datainfo where id="; myQuery.concate(myQuery,userid); myResultSet = stmt.executeQue

Re: select query syntax

2001-04-28 Thread Rene Tegel
supposed you numbered all rows in the table incrementally in field nid: select mydata from mytable where mod(nid, N)=offset; fill in N and offset (0..n-1) On Sat, 28 Apr 2001 14:26:46 +0400 Igor V Yermakov <[EMAIL PROTECTED]> wrote: > i have 400 rows in my mysql database table > and i wont ge

select query syntax

2001-04-28 Thread Igor V Yermakov
i have 400 rows in my mysql database table and i wont get each N row from table (say each sixth row)??? please help me??? - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.c

Syntax error

2001-04-26 Thread Ryan
Hi, here is public void String myQuery = "SELECT password from customerinfo where username="; myQuery.concat(myQuery, - Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices

RE: SQL Syntax question

2001-04-25 Thread Don Read
On 26-Apr-01 [EMAIL PROTECTED] wrote: > I have two table I need to join in a query. The second table needs to be > join twice (I think) to the first. Details as follows (tables pared > down)... > > Table games > gameid > hometeamid > guestteamid > > Table team > teamid > sponsor > > I wan

SQL Syntax question

2001-04-25 Thread dboothe
I have two table I need to join in a query. The second table needs to be join twice (I think) to the first. Details as follows (tables pared down)... Table games gameid hometeamid guestteamid Table team teamid sponsor I want a query to return game.gamid, team.sponsor (hometeam), team.spons

Re: SQL Syntax question

2001-04-21 Thread Bob Hall
= 'ACT' or custmls.listingstatus = 'A*') AND >custmls.scategory = 1 ORDER BY custmls.currentprice > >The error is: "1064 You have an error in your SQL syntax near 'ON ipix >custmls.mlsnumber = ipix.mlsnumber where custmls.listingoffice = 0251 AN' at >line 1 " &g

SQL Syntax question

2001-04-20 Thread Patrick J. Militzer
ls.scategory = 1 ORDER BY custmls.currentprice The error is: "1064 You have an error in your SQL syntax near 'ON ipix custmls.mlsnumber = ipix.mlsnumber where custmls.listingoffice = 0251 AN' at line 1 " Any ideas? Thanks Pat Pat Militzer Tech Support Supervisor Metro/MLS I

RE: Correct syntax?

2001-04-19 Thread Braxton Robbason
select word, count(word) as total from search_words where word is not null group by word order by total desc limit 20 -Original Message- From: Graham Nichols [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 19, 2001 1:36 PM To: [EMAIL PROTECTED] Subject: Correct syntax? Thanks for help

Re: Correct syntax?

2001-04-19 Thread John Barton
"select word, count(word) as total from search_words where word IS NOT NULL group by word order by total desc limit 20" John Barton Unix Systems Administrator Primary Networks, Inc. [EMAIL PROTECTED] On Thu, 19 Apr 2001, Graham Nichols wrote: > Thanks for help from this group I'm using > > "sel

Correct syntax?

2001-04-19 Thread Graham Nichols
Thanks for help from this group I'm using "select word, count(word) as total from search_words group by word order by total desc limit 20" to locate the top 20 words in a database of website search engine words. The database had been altered to include an extra column, other than the 'word' col

Re: Syntax problem...

2001-04-10 Thread Peter Pentchev
nce >> CREATE TABLE.. * The `FOREIGN KEY', `CHECK', and `REFERENCES' clauses don't actually do anything. The syntax for them is provided only for compatibility, to make it easier to port code from other SQL servers and to run applications that create tables

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

Bad Select Syntax workaround?

2001-04-08 Thread phobo
CTURE`,`telstrasaturn`.`EXPDATE`,`telst rasaturn`.`PRNREC` FROM "telstrasaturn" FOR UPDATE " SDWORD 363 DIAG [42000] [TCX][MyODBC]You have an error in your SQL syntax near '"telstrasaturn" ' at line 1 (1064) -- What workaround do I hav

Re: REPOST: SELECT syntax

2001-04-05 Thread Ashley M. Kirchner
"Thalis A. Kalfigopoulos" wrote: > Check you don't have empty strings as empty remarks, but that you have NULLs. > Even with empty strings as remarks though you can bypass them with an extra WHERE >condition :-) That was it. I was storing empty strings, instead of NULLs. Thanks! AMK4

Re: REPOST: SELECT syntax

2001-04-05 Thread Thalis A. Kalfigopoulos
On Thu, 5 Apr 2001, Ashley M. Kirchner wrote: > "Thalis A. Kalfigopoulos" wrote: > > > > +--++--+-+ > > > | task | comment |remarks | history | > > > +--++--+-+ > > > | task_1 | cmt_1

Re: REPOST: SELECT syntax

2001-04-05 Thread Ashley M. Kirchner
"Thalis A. Kalfigopoulos" wrote: > > +--++--+-+ > > | task | comment |remarks | history | > > +--++--+-+ > > | task_1 | cmt_1| rmk_1| | > > | task_1 | cmt_2

Re: REPOST: SELECT syntax

2001-04-05 Thread Thalis A. Kalfigopoulos
On Wed, 4 Apr 2001, Ashley M. Kirchner wrote: > > Db -> table1, table2 and table3 > > SELECT table1.task, table2.comment, table2.remarks, table3.history > FROM table1 LEFT JOIN table2 ON table1.id=table2.todoid > LEFT JOIN table3 ON table1.id=table3.todoid WHERE table1.id=10; > > Resul

REPOST: SELECT syntax

2001-04-04 Thread Ashley M. Kirchner
Db -> table1, table2 and table3 SELECT table1.task, table2.comment, table2.remarks, table3.history FROM table1 LEFT JOIN table2 ON table1.id=table2.todoid LEFT JOIN table3 ON table1.id=table3.todoid WHERE table1.id=10; Results (roughly) in: +--++--+-

Re: Please help with MYSQLDUMP syntax errors

2001-04-04 Thread Gerald Clark
001, James > Salinas wrote: > > > Hi, > > > > My problem is specifically concerning syntax for mysqldump. > > I can successfully execute the following SQL commands from within MYSQL: > > > > mysql> USE cDatabase > > mysql> SELECT * INTO OUTFILE &quo

Re: Please help with MYSQLDUMP syntax errors

2001-04-04 Thread Andrew Gould
fter pressing ENTER. If you want this to happen at night, execute the job via cron. I hope this helps. Andrew Gould --- James Salinas <[EMAIL PROTECTED]> wrote: > Hi, > > My problem is specifically concerning syntax for > mysqldump. > I can successfully execute the follo

Re: Please help with MYSQLDUMP syntax errors

2001-04-04 Thread Peter Skipworth
mysql --username=xxx --password=xxx -e "SELECT * INTO OUTFILE "/root/cTable-data.dump" FIELDS TERMINATED BY ',' ENCLOSED BY '"' FROM cTable WHERE myfield='1'" dbname On Wed, 4 Apr 2001, James Salinas wrote: > Hi, > > My

Please help with MYSQLDUMP syntax errors

2001-04-04 Thread James Salinas
Hi, My problem is specifically concerning syntax for mysqldump. I can successfully execute the following SQL commands from within MYSQL: mysql> USE cDatabase mysql> SELECT * INTO OUTFILE "/root/cTable-data.dump" -> FIELDS TERMINATED BY ',' ENCLOSED BY '&q

SELECT syntax

2001-04-03 Thread Ashley M. Kirchner
Db -> table1, table2 and table3 SELECT table1.task, table2.comment, table2.remarks, table3.history FROM table1 LEFT JOIN table2 ON table1.id=table2.todoid LEFT JOIN table3 ON table1.id=table3.todoid WHERE table1.id=10; Results (roughly) in: +--++--+-

Re: [OT] SQL syntax qestion

2001-03-26 Thread Curtis Maurand
ROTECTED]> Sent: Monday, March 19, 2001 11:44 PM Subject: RE: [OT] SQL syntax qestion > Hi, > > Yes, in MySQL you can go > > select handle, sum(total) as t group by handle order by t; > > in ANSI (?) you can go > > select handle, sum(total) group by handle order

Re: [OT] SQL syntax qestion

2001-03-19 Thread Mohamad Ilhami
On Mon, 19 Mar 2001, Curtis Maurand wrote: > Hi, > Just a quick quesiton, I have a table that contains difined as > > create table picks( >handle char(30) primary key, ><...> > total int unsigned); > > there is a user table that has a list of handles and other user info. handle

<    5   6   7   8   9   10   11   >