Re: reports slows down network

2004-08-25 Thread Daniel Kasak
Jon Miller wrote: This is the configuration file in use. /etc/my.cnf [mysqld] datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock port=3306 [mysql.server] user=root basedir=/var/lib [safe_mysqld] err-log = /var/log/mysqld.log pid-file= /var/run/mysqld/mysqld.pid

RE: Migration tools/plan from oracle 7.3 to Mysql 4.0

2004-08-25 Thread lakshmi.narasimharao
Hi, I have to migrate oracle 7.3 database to MySql , for oracle used Pro*C. In the front end used Java, JNI, RMI and Pro*C. In the migration process what will be the best equivalent of Pro*C in MySql. Ans also need to use XML, for the above environment what are the best langauge suit

RE: Migration tools/plan from oracle 7.3 to Mysql 4.0

2004-08-25 Thread Karam Chand
Give a look to SQLyogs ODBC Import Tool. It can be found at http://www.webyog.com Regards, Karam --- [EMAIL PROTECTED] wrote: Hi, I have to migrate oracle 7.3 database to MySql , for oracle used Pro*C. In the front end used Java, JNI, RMI and Pro*C. In the migration process

Importing fields of constant length

2004-08-25 Thread Sebastian Haag
Hello, is it possible to import data into a MySQL-DB from a text-file which does not have separating characters (like a comma, semicolon or tab)? I have a .csv-file in which each column has a different constant lenght (so many characters or digits) that I need to import. For example: 00721617

Re: Importing fields of constant length [solved]

2004-08-25 Thread Sebastian Haag
My tounge spoke too early, sorry! Sebastian Haag said: Hello, is it possible to import data into a MySQL-DB from a text-file which does not have separating characters (like a comma, semicolon or tab)? I have a .csv-file in which each column has a different constant lenght (so many

Re: One form multiple inserts

2004-08-25 Thread Stuart Felenstein
Never mind, finally figured it out on my own. Sorry , i think out loud sometimes! Stuart --- Stuart Felenstein [EMAIL PROTECTED] wrote: Trying to figure out how this gets done. Let me explain first. By the way I hope this is not off topic as perhaps it is more towards application then

MIN and JOIN - USING TEMPORARY

2004-08-25 Thread Marc Debold
Hi there, I have trouble with a SQL statement that uses too much load on our server due to heavy traffic. MySQL uses temporary files and filesort, so I narrowed the problem down to this one here: TABLE A: ID INTEGER PRIMARY KEY TEXTVARCHAR(10) TABLE B: ID INTEGER

Limiting record inserts by user

2004-08-25 Thread Stuart Felenstein
I want to , need to, have a way to check how many records a user can insert into a table. I thought it would be a, and maybe it is , a statement using count(). Can count be used though if I want to check by the user's ID ? In other words, something like: where ID = count() = 5 , if ..

Re: Limiting record inserts by user

2004-08-25 Thread Neculai Macarie
where ID = count() = 5 , if .. In other words Count wouldn't be looking for an ID with a value of 5, but the number of records the ID has in the table . SELECT count(*) AS users_records_number FROM table WHERE user_id = 5; -- mack / -- MySQL General Mailing List For list

Re: Testing for the existence of an index

2004-08-25 Thread Jesse Sheidlower
On Tue, Aug 24, 2004 at 11:57:05AM +0200, Thomas Spahni wrote: Jesse, mysql SHOW INDEX FROM mytable; gives you all indexes for `mytable`; you can process the results with perl. Thanks very much. This works fine, and since I don't care about the return value--just that there is one--it

Re: Replication eats 99% CPU

2004-08-25 Thread Chua Choon Keng
At first, I thought it was a low memory problem. I reduced my buffers in my.cnf and run the test again. The master still hung and this is a screenshot of top command just before it died: http://choonkeng.hopto.org/temp/replication-hang.gif There are still plenty of memory and no disk swapping

Slow Queries on Fast Server?

2004-08-25 Thread JVanV8
I'm running into a problem with some queries running on a dedicated mysql server (2.0 GHz, 2GB RAM). Fulltext searching really exemplifies this as most MATCH, AGAINST queries are taking 5-20 seconds. Performance was excellent for some reason one day (0.2 - 0.75 seconds) but it was only fast

Re: Figuring out the ranking position of an item on a table given its partnumber

2004-08-25 Thread SGreen
You could simply run your query then use your programming language's facilities to scroll down the result set looking for the item in question. When you found the right record, you would know what it's ranking was based on how many rows of your results you had to scan through before you found

Aggregating functions Enhancement and extension

2004-08-25 Thread Joe Byers
MYSQL new feature The aggregating functions std and variance calculate the population standard deviations and variance. I work extensively with datasets doing statistical analysis. Many times it is faster and more efficient to perform the basic univariate statistics on the server but I need the

Re: Dynamic Queries followup

2004-08-25 Thread SGreen
BRITISH ACCENT By Jove! I think he's got it! /BRITISH ACCENT BTW - Rhino, that was an EXCELLENT response. Stuart, I believe you have seen the light. What you figured out, thanks to Rhino and your own intuition, is basically how to normalize your data. Normalization is critical to database

Re: AVG Function

2004-08-25 Thread Craig Hoffman
Mark, Yes its close and thank you. The problem I am having is I am able to generate the correct ranking.id for that particular user but I can't seem to make it equal the ranking.rating. ID ranking.rating 9 = 5.6 (example) Here's my query: SELECT routes.user_id, ranking.rating,

Suppression of result in SELECT @temp := column?

2004-08-25 Thread info
Is there any way to not sending the result of a user variable assignment to the client? I.e. Suppress the result of; SELECT @temp := columnID FROM table WHERE column = whatever LIMIT 0,1 ...since I only use @temp in my next statement to produce the actual result. Also, is there a equivalence

Using CREATE PROCEDURE/FUNCTION

2004-08-25 Thread Marti Quixal
Hi! Anybody knows how to use CREATE PROCEDURE and CREATE FUNCTION in 4.1.1-alpha-Max. I keep trying the CREATE PROCEDURE and CREATE FUNCTION examples found in the MySQL web documentation, but there's no way to make it work. It always prompts problems with syntax. Is delimiter a function

RE: Using CREATE PROCEDURE/FUNCTION

2004-08-25 Thread Boyd E. Hemphill
Marti: Stored procedures are new in version 5.0. Best Regards, Boyd E. Hemphill MySQL Certified Professional [EMAIL PROTECTED] Triand, Inc. www.triand.com O: (512) 248-2287 M: (713) 252-4688 -Original Message- From: Marti Quixal [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 25,

Re: Using CREATE PROCEDURE/FUNCTION

2004-08-25 Thread Terry Riley
I think you'll find that 'create procedure' and 'create function' don't appear until version 5.0 of MySQL. Which is why you get a syntax (are you sure you have the right version?) error. Regards Terry - Original Message - Hi! Anybody knows how to use CREATE PROCEDURE and CREATE

Re: Slow Queries on Fast Server?

2004-08-25 Thread V. M. Brasseur
Have you checked the Optimization section of the manual yet? http://dev.mysql.com/doc/mysql/en/MySQL_Optimization.html It's probably the best place to start. Cheers, --V [EMAIL PROTECTED] wrote: I'm running into a problem with some queries running on a dedicated mysql server (2.0 GHz, 2GB RAM).

PHP / Mysql people question

2004-08-25 Thread Stuart Felenstein
Thought earlier that I could get by on just plain SQL. Php needed. I'm getting a parse error on the if line. This is supposed to be a trigger then before transaction counts the number of rows , id already inserted, if exceeded , kick back error message , halt transaction. Not sure where I need

Re: PHP / Mysql people question

2004-08-25 Thread jeffrey_n_Dyke
Thought earlier that I could get by on just plain SQL. Php needed. I'm getting a parse error on the if line. This is supposed to be a trigger then before transaction counts the number of rows , id already inserted, if exceeded , kick back error message , halt transaction. Not sure

Re: Slow Queries on Fast Server?

2004-08-25 Thread JVanV8
Have you checked the Optimization section of the manual yet? http://dev.mysql.com/doc/mysql/en/MySQL_Optimization.html Oh yes, as I've attempted to configure the my.cnf file for best performance. The query is correct. The fulltext index is correct as I built the fulltext index on the single

Create procedure problem

2004-08-25 Thread Joe Byers
I want to create a stored procedure that I pass a date variable and two database names. I can not seem to figure the correct syntax to utilize these variables in the procedure. I think I might need to build a sqlstring and use an exec command to execute the string. Here is my procedure

Re: Slow Queries on Fast Server?

2004-08-25 Thread V. M. Brasseur
Could you send the output of an EXPLAIN for your query? --V [EMAIL PROTECTED] wrote: Have you checked the Optimization section of the manual yet? http://dev.mysql.com/doc/mysql/en/MySQL_Optimization.html Oh yes, as I've attempted to configure the my.cnf file for best performance. The query is

Re: Slow Queries on Fast Server?

2004-08-25 Thread JVanV8
Could you send the output of an EXPLAIN for your query? Sure, pretty sure the index is fine though: mysql EXPLAIN SELECT COUNT(*) FROM product_fulltext WHERE MATCH (search_text) AGAINST ('black');

Re: Create procedure problem

2004-08-25 Thread Martijn Tonies
Hi Joe, I want to create a stored procedure that I pass a date variable and two database names. I can not seem to figure the correct syntax to utilize these variables in the procedure. I think I might need to build a sqlstring and use an exec command to execute the string. Here is my

Re: MySQL Secure Connection(e.g. SSL) Question

2004-08-25 Thread SGreen
Something else I have done in the past was to use Cygwin to create an SSH session with the remote computer and use the remote computer's MySQL client/tools. If you are used to working in a Terminal Server session (I think they now call it Remote Desktop Connectivity) it will feel very

Re: MySQL query designer for *nix?

2004-08-25 Thread Egor Egorov
Jens Bierkandt [EMAIL PROTECTED] wrote: you might want to try this: DBDesigner from FabForce. This seems to be what I'm looking for. Thank you! -- For technical support contracts, goto https://order.mysql.com/?ref=ensita This email is sponsored by Ensita.net http://www.ensita.net/ __

Re: How to Reset a field

2004-08-25 Thread Egor Egorov
Yusdaniel Rodriguez Espinosa [EMAIL PROTECTED] wrote: I have a db with table usuarios I erased all data in this table but Id is a autoinc and he have the value of the last value. How I can Reset the field ID See http://dev.mysql.com/doc/mysql/en/ALTER_TABLE.html at the very end. --

Re: anonymous localhost user in mysql user grant table

2004-08-25 Thread Egor Egorov
rusty [EMAIL PROTECTED] wrote: What's the purpose of the entry in the user table where it has host='localhost' and user='' (blank) and all of the permissions set to N? You may want to look at http://dev.mysql.com/doc/mysql/en/Privilege_system.html and

Re: Replication eats 99% CPU

2004-08-25 Thread Egor Egorov
Please download MySQL official binaries and install. Then check if the problem disappears. -- For technical support contracts, goto https://order.mysql.com/?ref=ensita This email is sponsored by Ensita.net http://www.ensita.net/ __ ___ ___ __ / |/ /_ __/ __/ __ \/ /

Re: frecvent table corruption

2004-08-25 Thread Egor Egorov
adam [EMAIL PROTECTED] wrote: The actual error message we get is: SELECT query FROM namedqueries WHERE userid = 4 AND name = '(Default query)': Got error 127 from table handler at globals.pl line 276. [EMAIL PROTECTED] egor]$ perror 127 Error code 127: Unknown error 127 127 =

ANN: MyCon 2004.1.1 Released

2004-08-25 Thread SciBit MySQL Team
SciBit is happy and proud to announce the 2004.1.1 release of MyCon. If you already have a registered copy, upgrading your current version is free and you can download the new MyCon Pro version (or for trial purposes): http://download.scibit.com/software/mycon/mcp.exe FreeMyCon is completely

Re: MySQL Secure Connection(e.g. SSL) Question

2004-08-25 Thread Joshua J. Kugler
Something else to check out is Stunnel. It creates SSL tunnels between hosts without requiring logins (basically port redirection). Also, MySQL has built in SSL now, so you might want to look at that. j- k- On Wednesday 25 August 2004 08:10 am, [EMAIL PROTECTED] said something like:

RE: frecvent table corruption

2004-08-25 Thread adam
-Original Message- From: Egor Egorov [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 25, 2004 12:40 PM To: [EMAIL PROTECTED] Subject: Re: frecvent table corruption adam [EMAIL PROTECTED] wrote: The actual error message we get is: SELECT query FROM namedqueries WHERE userid = 4

How do I find out a table's constraints ?

2004-08-25 Thread Nestor Florez
What command should I use to find out a table's constraints? Thanks, :-) Néstor Alberto Flórez Torres -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: How do I find out a table's constraints ?

2004-08-25 Thread Martijn Tonies
What command should I use to find out a table's constraints? If you're talking about Foreign Key constraints, you can have a look at them via the SHOW CREATE TABLE tablename statement. With regards, Martijn Tonies Database Workbench - developer tool for InterBase, Firebird, MySQL MS SQL

Re: MySQL Secure Connection(e.g. SSL) Question

2004-08-25 Thread Eamon Daly
FYI, DBD::MySQL does support SSL. See http://search.cpan.org/~rudy/DBD-mysql-2.9004/lib/DBD/mysql.pm and search for mysql_ssl. You'll need to provide mysql_ssl_client_key mysql_ssl_client_cert mysql_ssl_ca_file as part of the DSN on the perl side, and set ssl-ca, ssl-key, and ssl-cert on the

MySQL 5.0.1 won't restart

2004-08-25 Thread Scott Hamm
I'm running Windows 2000 and MySQL 5.0.1. When I tried to restart the service, it won't start up again, error message saying to try again in 30 minutes. After waiting for 30 minutes, it still bring up same error message. What might be the cause? Scott -- MySQL General Mailing List For list

how to hide certain columns

2004-08-25 Thread Mauricio Pellegrini
Hi, I'm using a few variables to do some calculations in the select list of a query but I don't like those columns ( the ones performing the calc's ) to be shown in the result. for example: Set @var1=0; Set @var2=1; Select Col1, as 'C1' Col2as

autoincrement question

2004-08-25 Thread dan orlic
question: I have an insert statement that has a null for the value of the primary key, id, since that value is also a auto-increment field. The problem i am running into is I need that Id further down the road for map tables, but I have no idea what the id is, since it is in fact,

Could this be dangerous :Values and Labels

2004-08-25 Thread Stuart Felenstein
Or maybe just bad practice. Thought before I go any further I'll ask. I have a few static tables that list out items and the primary key is an assigned ID. Meaning I did not set auto-increment. As I add items I will add the associated ID number. Now to the transactional tables. While the

RE: autoincrement question

2004-08-25 Thread Victor Pendleton
You will have to call the last_insert_id() function in order to obtain the autoincrement value. -Original Message- From: dan orlic To: [EMAIL PROTECTED] Sent: 8/25/04 2:26 PM Subject: autoincrement question question: I have an insert statement that has a null for the value of the

Re: calculating ratio of two datetime columns

2004-08-25 Thread SGreen
MySQL has several functions for dealing with date and time values, many of which exist only as of 4.1.x. Which ones are available to you depend on your version. Please read: http://dev.mysql.com/doc/mysql/en/Date_and_time_functions.html Actually, I believe that the formula you wrote is almost

Re: Add new database into existing MYSQL database

2004-08-25 Thread SGreen
If you do not use the GRANT, REVOKE, and DROP USER statements to create and destroy user accounts, you must manually FLUSH PRIVILEGES. It's all documented in the manual: http://dev.mysql.com/doc/mysql/en/GRANT.html and in even more detail here:

Re: Could this be dangerous :Values and Labels

2004-08-25 Thread Rhino
- Original Message - From: Stuart Felenstein [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, August 25, 2004 3:36 PM Subject: Could this be dangerous :Values and Labels Or maybe just bad practice. Thought before I go any further I'll ask. I have a few static tables that

Re: mysql-plain Digest 25 Aug 2004 19:36:13 -0000 Issue 3063

2004-08-25 Thread Rusty Wright
Date: Wed, 25 Aug 2004 19:30:04 +0300 To: [EMAIL PROTECTED] From: Egor Egorov [EMAIL PROTECTED] Subject: Re: anonymous localhost user in mysql user grant table rusty [EMAIL PROTECTED] wrote: What's the purpose of the entry in the user table where it has host='localhost'

Re: Could this be dangerous :Values and Labels

2004-08-25 Thread Stuart Felenstein
I like the mnemonic idea. I wish it was as simple as airlines though. [Orbitz if your out there listening, don't worry I'm not coming after you!] Well to ponder. Yes, regarding AI keys , I have them for transactions, new regs, etc. For longer static's we'll see. The rest I can type in. Thanks

Re: Could this be dangerous :Values and Labels

2004-08-25 Thread Stuart Felenstein
The other idea I had aside from mnemonic (that was yours) was to use beefier numbers. I started listing them from 1. I am thinking of 3 digits maybe. Stuart --- Rhino [EMAIL PROTECTED] wrote: - Original Message - From: Stuart Felenstein [EMAIL PROTECTED] To: [EMAIL PROTECTED]

Re: One form multiple inserts

2004-08-25 Thread SGreen
Stuart, You need to begin to divorce these two processes from each other: STORAGE and INPUT/OUTPUT. What your user's see on a web page doesn't need to look anything at all like your database structure. A user interface (UI) is designed for ease of use. The other is designed for query and

Re: Can append word into varchar column in Update statement?

2004-08-25 Thread SGreen
Yes, UPDATE ... SET... is exactly what you would use. Just set the column to be the combined value of the two values. Please read: http://dev.mysql.com/doc/mysql/en/UPDATE.html UPDATE tablename SET fieldname = 'new list of values that you wanted' WHERE _where_conditions_ Shawn Green Database

Re: Could this be dangerous :Values and Labels

2004-08-25 Thread Rhino
- Original Message - From: Stuart Felenstein [EMAIL PROTECTED] To: Rhino [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, August 25, 2004 4:41 PM Subject: Re: Could this be dangerous :Values and Labels The other idea I had aside from mnemonic (that was yours) was to use beefier

Re: Could this be dangerous :Values and Labels

2004-08-25 Thread SGreen
An integer column can hold rather large numbers, why not go ahead and use the ones that are 100? They are as valid as any other number, aren't they? I think you are confusing how things look with what they are. If you need really BIG numbers so that you can identify MANY rows of data use a

Re: mysql-plain Digest 25 Aug 2004 19:36:13 -0000 Issue 3063

2004-08-25 Thread SGreen
The anonymous account IS a security risk and should be deleted as soon as you are capable of managing real logins. It's basically there to let newbie administrators get up to speed with as few problems as possible. Now that you are comfortable with the MySQL privileges, dump it and hope it

what did people do before str_to_date ?

2004-08-25 Thread Vincent
Hello All, Ran into a small problem. I was developing code under the 4.1.x series of mysql and but discovered that the production server is 3.23.x. Some of my queries made use of the very handy str_to_date() function. Is the only solution (besides upgrading production server) to preformat the

Re: One form multiple inserts

2004-08-25 Thread Stuart Felenstein
Too funny! I'm slowly coming to grips on the M2M. I decided not to opt for it in this situation as I still believe it would not address my issues. My problem, or a better to phrase it , my solution is that I am not supplying titles. They are, to the user , blank fields , left to them to supply

Query Help

2004-08-25 Thread Ronan Lucio
Hi, I sorry for I neither didn´t find the information that I need in the documentation nor found the correct words for a search in the mailing archivers. I have a query like this: SELECT cod, descr FROM table WHERE AND cod != 7 AND cod != 10 AND cod != 13 AND cod != 14

INSERT IGNORE like feature for rows failing foreign key constraints?

2004-08-25 Thread John McCaskey
I have a logging table where I insert a large number of rows every 5 minutes. For performance reasons this occurs in bulk inserts of about 5000 rows at a time. (ie. INSERT INTO table VALUES(...), (...), (...)) One of the fields in the table is an id that connects it to another table. It is

Re: Query Help

2004-08-25 Thread Rhino
- Original Message - From: Ronan Lucio [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, August 25, 2004 5:12 PM Subject: Query Help Hi, I sorry for I neither didn´t find the information that I need in the documentation nor found the correct words for a search in the

auotmate read queries for replication

2004-08-25 Thread Crouch, Luke H.
is there a simple way to automate read queries for replication above the application level? we have a huge amount of disparate systems with all their own queries, and we'd like to be able to set up the reads to go to our slaves, and the writes to go to our master without having to change every

Re: Prepared Statement questions/issues

2004-08-25 Thread Daniel Kasak
Ken Gieselman wrote: Hi Folks -- I'm running into some issues with large prepared statements, and would love some feedback about approaches or tweaks that I might have overlooked :) snipped Any suggestions as to how to do this more efficiently/faster? Or how to increase the buffer space for

RE: LIKE question

2004-08-25 Thread Schalk Neethling
If I search a field for 'doone' and one of the fields contains 'Lorna Doone' what is the best comparator to use as LIKE is skipping this one and I imagine '=' will do the same? -- Kind Regards Schalk Neethling Web Developer.Designer.Programmer.President Volume4.Development.Multimedia.Branding

Re: LIKE question

2004-08-25 Thread V. M. Brasseur
How about... SELECT foo FROM bar WHERE LCASE(this) = that; Although there are always other ways to do it, of course. Cheers, --V Schalk Neethling wrote: If I search a field for 'doone' and one of the fields contains 'Lorna Doone' what is the best comparator to use as LIKE is skipping this one

Problems with Mysql database and PHPAdmin

2004-08-25 Thread Keith Brownmiller
Greetings All, A seemingly strange problem. If I go to the mysql prompt on a linux server - mysql version 3.23.14-alpha. I can issue the command create database . I can then issue the command use . No problem. However, if I type use mysql for the mysql database. If I do a

re: crosstabs and pivot tables

2004-08-25 Thread Donna Hinshaw
Shawn - Maybe terminology here...but I think of a crosstab query as one which yields sums or averages or some such tabulation. What I need to do is just pivot from rows to columns. The way I've come up with is this: ORIGINAL TABLE: columns = id date datetype there are about 20 datetypes

Re: LIKE question

2004-08-25 Thread Michael Stassen
V. M. Brasseur wrote: How about... SELECT foo FROM bar WHERE LCASE(this) = that; Although there are always other ways to do it, of course. Cheers, --V Schalk Neethling wrote: If I search a field for 'doone' and one of the fields contains 'Lorna Doone' what is the best comparator to use as LIKE

Question about SQL statements......

2004-08-25 Thread David Souza
So I have all of this years apache access logs in a huge DB table, most of what I wanted to get out is working fine, but I am trying to get top 10 requests (hits) by day inside a certain section of the hierarchy, but I can't seem to get the correct results. I have been trying many different

Re: Question about SQL statements......

2004-08-25 Thread Rhino
- Original Message - From: David Souza [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, August 25, 2004 7:18 PM Subject: Question about SQL statements.. So I have all of this years apache access logs in a huge DB table, most of what I wanted to get out is working fine,

FLUSH TABLES WITH READ LOCK

2004-08-25 Thread Kato Haws
In the 4.0.20-standard-log version of mysql, will the FLUSH TABLES WITH READ LOCK statement work to quiesce a database consisting of Innodb tables? Thanks, --- Kato D. Haws Arizona State University; Database Administration

Re: Question about SQL statements......

2004-08-25 Thread David Souza
You rock!! Worked perfectly On Aug 25, 2004, at 4:31 PM, Rhino wrote: - Original Message - From: David Souza [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, August 25, 2004 7:18 PM Subject: Question about SQL statements.. So I have all of this years apache access logs in

Re: Problems with Mysql database and PHPAdmin

2004-08-25 Thread Rusty Wright
Creating a database is a separate thing from adding permissions for a database to the grant tables. When you create a database it's a free floating database that nobody (except root) has permission to access until you issue the grant statements to make someone own it. But nobody actually owns

need help with a query

2004-08-25 Thread Redmond Militante
hi i need advice on a query i'm trying to do. i'm trying to find entries with that are about to expire. entries expire if their date of submission is older than 60 days. i want to find all entries with a date of submission greater than 30 days, or those that are going to expire within a

RE: need help with a query

2004-08-25 Thread David Perron
Are you assuming that all months have 30 days? You can use the same syntax with INTERVAL 1 MONTH I would also format the date comparison to use the same precision that the DATE_ADD function outputs. So, DATE_ADD(table.date, INTERVAL 1 MONTH) = DATE_FORMAT(CURDATE(), '%Y-%m-%d') I might be off

Re: crosstabs and pivot tables

2004-08-25 Thread Leonardus Setiabudi
hi there this might be an extreme solution.. but i thought you could come up with just one query instead of 20 temp tables.. if you dont mind to write it :) select id, max(if(datetype='entered_date',date,'')) entered_date, max(if(datetype='modified_date',date,'')) modified_date,

Re: Prepared Statement questions/issues

2004-08-25 Thread Leonardus Setiabudi
Hi Ken.. this might not solve your problem.. but, did you really have to do this create table raddata ( granIDinteger not null, scanIDtinyint unsigned not null, fpID tinyint not null, c1smallint, c2

Re: need help with a query

2004-08-25 Thread Michael Stassen
Redmond Militante wrote: hi i need advice on a query i'm trying to do. i'm trying to find entries with that are about to expire. entries expire if their date of submission is older than 60 days. i want to find all entries with a date of submission greater than 30 days, or those that are going

Re: need help with a query

2004-08-25 Thread Michael Stassen
David Perron wrote: Are you assuming that all months have 30 days? You can use the same syntax with INTERVAL 1 MONTH True. I would also format the date comparison to use the same precision that the DATE_ADD function outputs. Why would you do that? The date column contains a DATE. CURDATE()

Re: need help with a query

2004-08-25 Thread Redmond Militante
awesome. thank you! [Wed, Aug 25, 2004 at 06:27:38PM -0700] This one time, at band camp, David Perron said: Are you assuming that all months have 30 days? You can use the same syntax with INTERVAL 1 MONTH I would also format the date comparison to use the same precision that the

Two indexes on same column. Crazy ?

2004-08-25 Thread Alistair Gusmao
I inherited a database with all MyIsam tables. In one of the tables, there was two indexes on the same column. Everything about the two indexes is the same (except the index name of course!). I think this is crazy ? What is your opinion ? Should I remove one of them ? Thanks Alistair -- MySQL

Re: Two indexes on same column. Crazy ?

2004-08-25 Thread Dan Nelson
In the last episode (Aug 26), Alistair Gusmao said: I inherited a database with all MyIsam tables. In one of the tables, there was two indexes on the same column. Everything about the two indexes is the same (except the index name of course!). I think this is crazy ? What is your opinion ?

Re: Can append word into varchar column in Update statement?

2004-08-25 Thread Michael Stassen
Monet wants to append something to the current value, so I think CONCAT() is needed: UPDATE temp SET ReviewComments = CONCAT(ReviewComments, ', WHC') WHERE ... ; Michael [EMAIL PROTECTED] wrote: Yes, UPDATE ... SET... is exactly what you would use. Just set the column to be the combined

Re: mysql-plain Digest 25 Aug 2004 19:36:13 -0000 Issue 3063

2004-08-25 Thread Michael Stassen
[EMAIL PROTECTED] wrote: The anonymous account IS a security risk and should be deleted as soon as you are capable of managing real logins. It's basically there to let newbie administrators get up to speed with as few problems as possible. Now that you are comfortable with the MySQL privileges,

mySQL beginner question

2004-08-25 Thread B Wiley Snyder
Hello, hope this is the right list I created a table with the following code CREATE TABLE jspCart_products ( ProductID int primary key, CategoryID int, ModelNumber varChar(75), ModelName varChar(250), ProductImage varchar(250), UnitCost decimal(9,2), Description BLOB, ); The CategoryID has

Re: MySQL Secure Connection(e.g. SSL) Question

2004-08-25 Thread Issac Goldstand
This all strikes me as somewhat odd, since there is a --ssl flag which one can use to build DBD::mysql with SSL support. Unfortunately, I've never personally figured out how to actually utilize it, but maybe others are more knowledgeable... Issac - Original Message - From: Joshua J.