Re: Update table on lost connection

2011-09-28 Thread Hank
Check out the GET_LOCK and RELEASE_LOCK virtual lock functions in MySQL. -Hank On Wed, Sep 28, 2011 at 9:15 AM, Alex Schaft wrote: > Hi, > > We're busy moving legacy apps from foxpro tables to mysql. User logins were > tracked via a record in a table which the app then locked, preventing > mul

Update table on lost connection

2011-09-28 Thread Alex Schaft
Hi, We're busy moving legacy apps from foxpro tables to mysql. User logins were tracked via a record in a table which the app then locked, preventing multiple logins for the same user code. I want to simulate this via a "locked" column in a mysql table, but would need the field to be cleared

Re: Persistent Connection VS One Time Connection Was Update Table

2010-09-27 Thread Willy Mularto
I have checked Apache's log. There is no refused connection. And also with MySQL I have set it to 999 connections and view the processes. Maximum connection ever reached was only around 200. What I'm thinking now is. Is it because of I use one time connection method? I mean every time the script

Re: Update Table

2010-09-27 Thread Nigel Wood
On Mon, 2010-09-27 at 11:25 +0100, Willy Mularto wrote: > Hi, > I work on MySQL 5 with PHP 5 and use Apache 2 as the webserver. I have a > simple query that searches matched row id and update the field via HTTP GET > query. On a low load it succeed update the row. But on high traffic sometimes

Update Table

2010-09-27 Thread Willy Mularto
Hi, I work on MySQL 5 with PHP 5 and use Apache 2 as the webserver. I have a simple query that searches matched row id and update the field via HTTP GET query. On a low load it succeed update the row. But on high traffic sometimes it failed to update some rows. No errors return by the script.

RE: what's better query to update table

2007-02-26 Thread Jerry Schwartz
Information Incorporated 195 Farmington Ave. Farmington, CT 06032 860.674.8796 / FAX: 860.674.8341 > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Monday, February 26, 2007 12:38 PM > To: mysql@lists.mysql.com > Subject: what's better query t

what's better query to update table

2007-02-26 Thread afan
hi to all! I have a table that contains ratings of suppleirs. almost 2000 records. administrator uses a form with radio buttons (values R, A and NR) to chanage rating for each supplier. after he submit I have an array where index is $supp_id and value is $new_rating. Since, admin changes the rat

Re: mySQL autogenerate, update table

2004-02-04 Thread Matt W
it with: AFTER some_other_column Also sending this to the General list since it isn't a Windows specific question. :-) Matt - Original Message - From: "tooptoosh" Sent: Wednesday, February 04, 2004 1:54 PM Subject: mySQL autogenerate, update table Hi all, I have a mySQL table with

Re: UPDATE TABLE with > 32 MB string corrupts ISAM

2003-11-10 Thread Victoria Reznichenko
Craig Cummings <[EMAIL PROTECTED]> wrote: >>Description: > > When inserting large strings into ISAM table in an UPDATE TABLE > command, my perl script generates an "Out of memory error". I tracked > this down using an SQL script (below). It seems that a 327772

RE: Update table with UNIX_TIMESTAMP

2003-11-08 Thread Erik Osterman
able column will be start_date: UPDATE table SET start_date = FROM_UNIXTIME(start); Of course, this is all really quite unnecessary, since when you select the data in some other part of your application, you can do the conversion at that time. For example SELECT FROM_UNIXTIME(start) FROM tab

Update table with UNIX_TIMESTAMP

2003-11-08 Thread Ron McKeever
Hello I have a table that gets appended to every night with the LOAD DATA command. The column 'start' is a unix timestamp. So when the LOAD DATA is done I then want to update the Column to be human readable. I was thinking of the following: UPDATE table SET start = UNIX_TIMESTAMP(

UPDATE TABLE with > 32 MB string corrupts ISAM

2003-11-06 Thread Craig Cummings
>Description: When inserting large strings into ISAM table in an UPDATE TABLE command, my perl script generates an "Out of memory error". I tracked this down using an SQL script (below). It seems that a 32777225 character string is tolerated, but a string one character larger is

How to update table using load data command but still and maintain pervious data?

2003-09-28 Thread florence florence
Hi, If i want to use "load data infile" into selected column, for example i have 5 column in one table and i only load data into column 1,2,4 and 5 and i use "load data infile "abc.txt" replace into table test(t1,t2,t4,t5)" but after i load into the table, the previous data in colum

Re: Update Table By ID Ranges

2003-08-01 Thread Cybot
How do i use the UPDATE statement to update a range of Primary Key id numbers. (let say 100 through 1000). Example, UPDATE testTable set testField='' WHERE test_id in (100:1000); > how about > > UPDATE testTable set testField='' WHERE > test_id >= 100 and test_id <= 1000; or just: expr BET

Re: Update Table By ID Ranges

2003-07-31 Thread Jeff Mathis
how about UPDATE testTable set testField='' WHERE test_id >= 100 and test_id <= 1000; Mike Doanh Tran wrote: > > Hi, > > How do i use the UPDATE statement to update a range of Primary Key id > numbers. (let say 100 through 1000). > > Example, > > UPDATE testTable set testField='' WHE

Update Table By ID Ranges

2003-07-31 Thread Mike Doanh Tran
Hi, How do i use the UPDATE statement to update a range of Primary Key id numbers. (let say 100 through 1000). Example, UPDATE testTable set testField='' WHERE test_id in (100:1000); Thanks in advance for any comments, Mike -- MySQL General Mailing List For list archives: http://lis

Re: SQLyog can not insert/update Table w/o Primary Key

2003-06-03 Thread Karam Chand
Probably this is what you want http://www.webyog.com/forums/index.php?act=ST&f=5&t=351&s=7cd9c97584811d72b9305d3e691ab28f Karam --- Daniel Crompton <[EMAIL PROTECTED]> wrote: > Out of interest is there any advantage of using a > primary key?, or is it > perfectly ok/normal not to specify one?. >

Re: SQLyog can not insert/update Table w/o Primary Key

2003-06-03 Thread Daniel Crompton
Out of interest is there any advantage of using a primary key?, or is it perfectly ok/normal not to specify one?. Im not quite sure what a primary does. I only used a primary key on one table which had auto_increment column only because it forced me to add it. ?? > Hello > > I belive this is no

Re: SQLyog can not insert/update Table w/o Primary Key

2003-06-03 Thread Karam Chand
Hello I belive this is not the correct place to ask the question. You can try your discussion forums at http://www.webyog.com/forums for SQLyog specific questions. Karam --- William IT <[EMAIL PROTECTED]> wrote: > Why SQLyog can not insert/update Table w/o Primary > Key? Is ther

SQLyog can not insert/update Table w/o Primary Key

2003-06-03 Thread William IT
Why SQLyog can not insert/update Table w/o Primary Key? Is there additional setting to enable this?

re: Problem with UPDATE table ... can u help plz?

2002-10-17 Thread Egor Egorov
STIBS, Thursday, October 17, 2002, 12:26:34 AM, you wrote: S> I have a littlebig problem: S> I want to UPDATE table1.fields with data from table2.fields WHERE the id (in this S> case a product number) is the same in both tables. S> OK, I did this: S> UPDATE table1 SET table1.field1 = table2.fi

RE: Problem with UPDATE table ... thx 4 your help

2002-10-17 Thread STIBS
Thanx guys! but: I'm not in the mood to try Greg's suggestion ... LOL! I think I'll work around that with Escapade programming language. It's much easier to handle. If not: I run a script that checks record by record in the first table if an update in the second table is available then I query

Re: Problem with UPDATE table ... can u help plz?

2002-10-16 Thread Bruce Lewis
> To: <[EMAIL PROTECTED]> Sent: Wednesday, October 16, 2002 5:15 PM Subject: RE: Problem with UPDATE table ... can u help plz? When I try that modified for my tables that fit this hypothetical, I get: CREATE TABLE `sales_table` ( `item_s` varchar(100) default '', `price_s

RE: Problem with UPDATE table ... can u help plz?

2002-10-16 Thread Greg Knaddison
on the page shows a kluge workaround. Greg -Original Message- From: Bruce Lewis [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 16, 2002 4:03 PM To: STIBS; [EMAIL PROTECTED] Subject: Re: Problem with UPDATE table ... can u help plz? You need an InnerJoin to perform the operation similar

Re: Problem with UPDATE table ... can u help plz?

2002-10-16 Thread Bruce Lewis
IL PROTECTED]> Sent: Wednesday, October 16, 2002 4:26 PM Subject: Problem with UPDATE table ... can u help plz? Hi from Dresden, Germany! I have a littlebig problem: I want to UPDATE table1.fields with data from table2.fields WHERE the id (in this case a product number) is the same in both t

Problem with UPDATE table ... can u help plz?

2002-10-16 Thread STIBS
Hi from Dresden, Germany! I have a littlebig problem: I want to UPDATE table1.fields with data from table2.fields WHERE the id (in this case a product number) is the same in both tables. OK, I did this: UPDATE table1 SET table1.field1 = table2.field1, table1.field2 = table2.field2,... WHERE ta

Re: Update table using regular expressions MySQL

2001-07-03 Thread Hannes Niedner
Thanks Karel, This worked almost out of the box, just needed to find out that 'len+1' has to be replaced with the actual number and is not automatically set (like len = length('CONSTANT%'). But the manual also explains this very well, I just didn't think of substring. Hannes On 7/3/01 9:13 AM,

Update table using regular expressions MySQL

2001-07-03 Thread Hannes Niedner
I want to update 160 records in a table. The field contains a variable value and a constant prefex like 'constant: unique value for this record' Is there such an UPDATE statement that would update this field into 'unique value for this record' They way I would do it otherwise is using Perls re