Re: best way to add a new column to a table with 60+ million records

2008-04-16 Thread Arun Kumar PG
easy way to do it. On Wed, Apr 16, 2008 at 5:30 PM, Arun Kumar PG <[EMAIL PROTECTED]> wrote: > hi, > > is there any other best way add a new column to an existing table having > 60+ million records. alter is taking more than 1.5 hours.. what are the best > practices around thi

best way to add a new column to a table with 60+ million records

2008-04-16 Thread Arun Kumar PG
hi, is there any other best way add a new column to an existing table having 60+ million records. alter is taking more than 1.5 hours.. what are the best practices around this. quick help will be appreciated. -- cheers, - a

Re: Debugging batch sql statements

2007-10-05 Thread Arun
I just want to see the original insert statement which failed, so that I can do a search on it. Is there any option for seeing the insert statement that gets executed and the error line next to next.? On 10/5/07, Baron Schwartz <[EMAIL PROTECTED]> wrote: > > Arun wrote: > > I

Re: Debugging batch sql statements

2007-10-05 Thread Arun
see last run errors, like some errors that are saved in the buffer. As I know this is the last sql statement that gets executed. On 10/5/07, Baron Schwartz <[EMAIL PROTECTED]> wrote: > > Arun wrote: > > I have a large batch of insert sql statements, of which some of them are >

Debugging batch sql statements

2007-10-05 Thread Arun
I have a large batch of insert sql statements, of which some of them are failing. I want to know which one is failing exactly. Is there anyway I can debug it and which statement went wrong. I have only 4 or 5 out of 200 statements that are failing. -- Thanks Arun George

Re: more than 10000 fields in the OR clause

2007-04-17 Thread Arun Kumar PG
great. thx! On 4/17/07, Daniel Kasak <[EMAIL PROTECTED]> wrote: Arun Kumar PG wrote: > Guys, > > I know this is a stupid thing but I wanted to know if we have an index > on a > column "X" and if i have a query having 1 OR conditions on the > field e.g. &g

more than 10000 fields in the OR clause

2007-04-16 Thread Arun Kumar PG
Guys, I know this is a stupid thing but I wanted to know if we have an index on a column "X" and if i have a query having 1 OR conditions on the field e.g. where X=10 OR x=12 OR x=13 OR x=15.. so on then will it give any benefits in terms of speed? thx - A

Re: Replication among disconnected Servers

2007-04-09 Thread Arun Kumar PG
But this slave can not have direct access to the master. Is there a way I can achive this? If the slave cannot have access to Master how can we call it as a Slave. I would rather call that as a server where you want to dump the mysql/data directory of the Master. better write a nightly shell scr

Re: tool to migrate data from oracle to mysql

2007-03-11 Thread Arun Kumar PG
http://www.mysql.com/products/tools/migration-toolkit/ There is a video presentation as well here for ORacle to MySQL migration. Thanks, - Arun On 3/12/07, Ananda Kumar <[EMAIL PROTECTED]> wrote: Hi Friends, Does any body know of any tool available for migrating data from oracle to

Re: mysql question regarding distinct/group by...

2007-01-04 Thread Arun Kumar PG
SELECT * FROM Dog GROUP BY FooId HAVING FooId = 1; This should also work. On 1/5/07, ViSolve DB Team <[EMAIL PROTECTED]> wrote: Hi, > dog > fooID int > size int > id int > > dog > fooIDsizeid >1 2 1 >2 5 2 >1 5 3 > > if i do a query > sel

Insert with subquery fails with ERROR 1110 (42000): Column 'REQ_DESC' specified twice

2004-01-05 Thread Arun Natarajan
= 1) --- [I do not want to use autoincrement fields or anyother MySql feature because the application will have to work with Oracle or MySql :( ] Thanks, Arun N. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Oracle nvl function equivalent.

2004-01-04 Thread Arun Natarajan
w, but it failed. Could some one help me out here? Create Function nvl(fieldVal INTEGER(10)) RETURNS INTEGER(10) BEGIN If fieldVal==null Then return 1; else return fieldVal; END Regards, Arun N -- MySQL General Mailing List For list archives: http://lists.mysql.com

Re: Mysql Query request

2002-12-28 Thread Arun Kumar
But if I have varchar fields won't the size of the record vary based on the actual contents in the varchar fields. Arun --- Paul DuBois <[EMAIL PROTECTED]> wrote: > At 18:38 -0800 12/27/02, Arun Kumar wrote: > >Dear All, > > I have a table 'X', I want to d

Mysql Query request

2002-12-27 Thread Arun Kumar
Dear All, I have a table 'X', I want to display the record in this table 'X' which has occupied the maximum number of bytes, i.e i want a query/queries to display the record with maximum size. I would also like to print the record size as well. Any help in this front w

Re: maximum record size query

2002-12-25 Thread Arun Kumar
lso > > like to print the record size as well. > > > > Any help in this front would be great. > > > > In anticipation. > > Arun > > > > > > __ > > Do you Yahoo!? > > Yahoo! Mail Plu

mysqldump user prive

2002-12-19 Thread Arun kumar R
I want to run mysqldump through a batch process, in order to do that what prive do i need to give to the user. It will be running as a cron job, i don't want to give any creation or deletion authorization. Your help will be greatly appreciated. Regards

javascript =>php=> mysql

2002-11-26 Thread Pallavi Arun Patil
hi all, my question is very simple following is my code: while($row=@mysql_fetch_array( $result1 ) ) { $SrNo=$row["SrNo"]; echo $SrNo; echo " ".$row["SrNo"]." ".$row["Company"]." "; if ($SrCk=="on" )

load data worked with warnings

2002-11-20 Thread Pallavi Arun Patil
mysql> load data infile "pet.txt" into table pet; ERROR 1105: File './test/pet.txt' not found (Errcode: 2) mysql> load data infile "pet.txt" into table pet; Query OK, 8 rows affected (0.00 sec) Records: 8 Deleted: 0 Skipped: 0 Warnings: 4 mysql> select * from pet; +--++-

load data worked with warnings

2002-11-20 Thread Pallavi Arun Patil
mysql> load data infile "pet.txt" into table pet; ERROR 1105: File './test/pet.txt' not found (Errcode: 2) mysql> load data infile "pet.txt" into table pet; Query OK, 8 rows affected (0.00 sec) Records: 8 Deleted: 0 Skipped: 0 Warnings: 4 mysql> select * from pet; +--++-

load data local infile

2002-11-20 Thread Pallavi Arun Patil
hello everybody, i m using redhat linux 7.2 with & mysql 3.23.49a-max-log with Apache 1.3.24 . i have encounter following error for load data local infile when i tried to use an example on mysql site's documentation file : mysql> use test; Database changed mysql> show tables; ++