How-to copy a column

2005-01-31 Thread Syed Ali
Does anyone know the easiest way to copy a column in mysql? I have a table (table1) which has 4 columns, I want to copy all the contents of col1 into col2. Col3 is the primary unique key, so the copy has to keep the data matched with col3. I guess one possible way is to do a select and output to

MySQL and Perl DBI Persistent Connection

2004-01-16 Thread Syed Ali
Hello, I have a Perl CGI script which uses DBI to access MySQL. I noticed that each query through the Perl CGI script using DBI has a connect, query and then quit. I was wondering if there is a way of keeping the connection persistent to Mysql through the Perl CGI script. In my Apache httpd.conf

How to move data between tables in a database?

2004-01-12 Thread Syed Ali
Hello, I would like to move data between tables in mysql within the same database, I am not sure what the best way to go about it is. I do not need to move all the data in the tables, just the output of some select statements. I am using Perl DBI and MySql 4.0.15-standard on RedHat 8.0. I guess I

RE: Representing time sheet data in Mysql

2003-09-29 Thread Syed Ali
So if you needed to know status of a work day for an employee day (say 9/1/2003), how did you go about looking it up in your table? Assuming that a employee can be present (p), on vacation (v), sick day (s)? Your table seems to store only the number of hours worked Thank you, Syed Ali (609

Representing time sheet data in Mysql

2003-09-29 Thread Syed Ali
Hello, I am trying to store our timesheet data in the Mysql database. I would appreciate suggestions on the database scheme to use. One of the possible ways to do it is to have a table indexed with the employee ID and then having as many columns as there are days in the year. This approach woul

Re: how include library correctly in a visual c++ 6 project

2001-11-15 Thread Syed Ali Dost Ali Dost
Hi Thomas In VC++, go to project file, right clik there, select setting then choose C/C++ then preprocessor. Here type the path c:/mysql/include at include path options. Also you have to add mysqlclient.lib for linker. To do so you should go to Linker tab and explicitly type the file in lib f

BCC32 problem.................

2001-11-14 Thread Syed Ali Dost
Hi I'm using Borland BCC32 & ILINK32 command line tools for windows to compile & link the C source code which contains calls for mySQL C APIs. I've downloaded the borland libraries. The problem I'm having is unable to refer to mysqlclient.lib file from BCC32. The problem is bit confus

lcc-win32 couldn't compile..........

2001-11-12 Thread Syed Ali Dost Ali Dost
Hi I'm new mySQL user (on Windows). I tried to compile & run the example C code "myTest.c" using lcc-win32 IDE but it throws errors. Although I put proper header path at setting...I think there is some problem with linker. I also included the "libmysql.lib" file but in vain.. Whe

C IDE for Windows...........?

2001-11-11 Thread Syed Ali Dost
Hi... I'm new to MySQL. I can play it by ODBC connectivity using JDBC-ODBC bridge. But I want to write code in C using MySQL native C-APIs. One reason for me to switch to MySQL is its C-APIs. I've been using Borland Turbo C/C++ 3.0 for a long time on DOS/Windows OS. When I try to include MySQ