RE: creating temp file, modifying data and putting into other table

2008-01-21 Thread Kerry Frater
atements such as creates/inserts/updates/deletes/selects will work using the test DB (you must do the same for Testdb Database) HTH M- - Original Message ----- From: "Kerry Frater" <[EMAIL PROTECTED]> To: "'Sebastian Mendel'" <[EMAIL PROTECTED]>; &quo

RE: creating temp file, modifying data and putting into other table

2008-01-21 Thread Kerry Frater
ata and putting into other table Kerry, Post the error you get. First select the database you are going to use in the right panel. execute the create table statement. update the table. execute the select statement as last. Saravanan --- On Sat, 1/19/08, Kerry Frater <[EMAIL PROTECTED]&

RE: creating temp file, modifying data and putting into other table

2008-01-18 Thread Kerry Frater
7;; [EMAIL PROTECTED] Subject: RE: creating temp file, modifying data and putting into other table Hi, Are you using mysql browser? If yes. It will run only the current line statement. It will not execute all the three statements. So try one after the other. Saravanan --- On Fri, 1/18/08, Kerry Frat

RE: creating temp file, modifying data and putting into other table

2008-01-18 Thread Kerry Frater
nd I should be testing in another way? Kerry -Original Message- From: Sebastian Mendel [mailto:[EMAIL PROTECTED] Sent: 18 January 2008 13:24 To: [EMAIL PROTECTED]; 'MySql' Subject: Re: creating temp file, modifying data and putting into other table Kerry Frater schrieb: > Can

RE: creating temp file, modifying data and putting into other table

2008-01-17 Thread Kerry Frater
rom: Jochem van Dieten [mailto:[EMAIL PROTECTED] Sent: 17 January 2008 19:34 To: MySql Subject: Re: creating temp file, modifying data and putting into other table On Jan 17, 2008 2:22 PM, Kerry Frater wrote: > Can someone please advise. I am looking to create a "multiuser" friendly way

creating temp file, modifying data and putting into other table

2008-01-17 Thread Kerry Frater
Can someone please advise. I am looking to create a "multiuser" friendly way of getting a subset number of rows from a table into another whilst making a modification. I thought that this could be done using a temporary table in a batch script that is unique to that session e.g. create temporary

group by two cols 1st desc and 3nd asc

2007-10-22 Thread Kerry Frater
I have a query to extract some data. Two columns include a setup date (setupdt) and a completed data (compdt). I would like the data grouped to get sub-totals but shown in different orders/ I would like the compdt with the newest first i.e. desc order and setup date with the oldest first i.e. asc

RE: SELECT single row from 2 tables with WHERE clause

2007-02-25 Thread Kerry Frater
all rows of the left of the conditional even if there is no right column to match." but t1.lookup='Z' constrains this to only the one row of table one with lookup equal to 'ZZZZZ'. Enjoy Peter On 2/17/07, Kerry Frater <[EMAIL PROTECTED]> wrote: I am

SELECT single row from 2 tables with WHERE clause

2007-02-17 Thread Kerry Frater
I am trying to select a particular row from a table and include a column for aq second table but I cannot get the result I am after. I have "table1" with 1000 rows and "table2" with 12 rows. The relationship between the tables is a column "linkedfield". Table1 has a unique key called "lookup" If

RE: mysql v5 math a bit out. How do I round the info to become correct

2006-12-14 Thread Kerry Frater
calculations, you need to use the DECIMAL data type. See this section in the manual for the reasons why: http://dev.mysql.com/doc/refman/5.1/en/precision-math-examples.html Cheers, Jay Kerry Frater wrote: > I am running a small procedure for set jobs that calculates a running total > for me to d

mysql v5 math a bit out. How do I round the info to become correct

2006-12-14 Thread Kerry Frater
I am running a small procedure for set jobs that calculates a running total for me to display. It works fine in most cases but the math concerns me. I am using 5.0.18 on my Windows PC and the latest 5.x on my Linux server (both test machines). The finance table is an InnoDb table. CreditAmount and

RE: SELECT...GROUP BY WITHIN GROUP BY

2006-11-30 Thread Kerry Frater
Donna, Just to say thanks. Played a bit more with the code and options and got most of what I wanted. A little procedure gives me the rest. Many thanks for pointing me in the right direction. Kerry -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 28 November 2

RE: SELECT...GROUP BY WITHIN GROUP BY

2006-11-28 Thread Kerry Frater
P modifier: select district, town, street, surname, count(surname) from test5 group by district asc, town asc, street asc, surname asc WITH ROLLUP Here's a link to the MySQL documentation on WITH ROLLUP http://dev.mysql.com/doc/refman/5.0/en/group-by-modifiers.html Donna "K

SELECT...GROUP BY WITHIN GROUP BY

2006-11-28 Thread Kerry Frater
Hope I have the right group. I am working out how to get groups within groups. e.g. I have a table with 4 columns C1,C2,C3 & C4 I am looking to select data so that I can get C1 group item C2 Group item C3 Group Item C4 detail End of C3 Group Item count/totals of

RE: How to build a single temporary table from 3 tables on the fly

2006-10-11 Thread Kerry Frater
Thanks Phil It gives me a solution and some reading. Kerry -Original Message- From: Philip Mather [mailto:[EMAIL PROTECTED] Sent: 11 October 2006 10:02 To: [EMAIL PROTECTED] Cc: mysql@lists.mysql.com Subject: Re: How to build a single temporary table from 3 tables on the fly

How to build a single temporary table from 3 tables on the fly

2006-10-11 Thread Kerry Frater
Can someone help point me in the right direction for this. This isn’t exactly what I want but once I have the solution to this I can work out the permutations I need. How do I select from 3 tables into a single table (consequtive rows not joined ones) and include a two new columns which is the nam

RE: update a Blob field using UPDATE

2006-02-11 Thread Kerry Frater
mysql_real_escape_string to your BLOB variable first? See: http://dev.mysql.com/doc/refman/5.0/en/mysql-real-escape-string.html I do not see the quotes around mystring$ as well. Kerry Frater wrote: > I am importing data from a non MySQL table into MySQL. > > In the table there is a text field of up

update a Blob field using UPDATE

2006-02-02 Thread Kerry Frater
I am importing data from a non MySQL table into MySQL. In the table there is a text field of up to length 4000 chars. I have defined the column as "blob" in the MySQL table. I can read the text field of the source table into a variable e.g. mystring$. The MySQL table has been set, except for this

Out of Range value adjusted?

2006-02-02 Thread Kerry Frater
I am trying to test some code on the new 5.0 version and am getting problems. I currently have two MYSQL's running on two differing machines. Both have the same schema set up by the my own program. The difference is that Machine 1 was set up on version 4.1 and then upgraded to 5. Machine 2 was a f

RE: error 1146 X.1 does not exist

2006-02-02 Thread Kerry Frater
I have seen the problem with the INSERT syntax. The new version doesn't like the use of "'s to surround text and prefers single quotes. I still don't see where the dbname.1 error is from Kerry -Original Message- From: Kerry Frater [mailto:[EMAIL PROTECTED] Sent: 02

error 1146 X.1 does not exist

2006-02-02 Thread Kerry Frater
Can someone point me in the right direction. I had 4.1 running and all was well with my little program. I decided to test the code with the newer 5.0.18. I updated my DB and then tried to access it using the MYSQl Control Centre - 0.9.4-Beta and query browser 1.0.4 alpha. The Administrator allows

RE: MySQL 5.0 error after upgrade

2006-01-19 Thread Kerry Frater
bug. MySQL Administrator should not assign character set to integer columns. See: http://dev.mysql.com/doc/refman/5.0/en/bug-reports.html Kerry Frater wrote: > Can someone help me. > > I was running v4 and just upgraded the version to v5.0. > > Most of my tables are MyISAM with some

error 1064 after upgrade to 5.0 from 4.1

2006-01-18 Thread Kerry Frater
Sorry I should have said. I get error 1064 whenever I am working with an integer or real column. char's are fine. Kerry Can someone help me. I was running v4.1 and just upgraded the version to v5.0. Most of my tables are MyISAM with some InnoDb. Most of the My

MySQL 5.0 error after upgrade

2006-01-17 Thread Kerry Frater
Can someone help me. I was running v4 and just upgraded the version to v5.0. Most of my tables are MyISAM with some InnoDb. Most of the MyISAM tables are char fields but a few have integer columns. When trying to create a new table using the Administrator 1.1 program it is fine creating columns w

RE: Crystal Reports & MySQL

2005-04-28 Thread Kerry Frater
nference: http://www.mysql.com/news-and-events/press-release/release_2005_10.html I hope this helps. Scott Pippin [EMAIL PROTECTED] >>> "Kerry Frater" <[EMAIL PROTECTED]> 04/28/05 6:09 AM >>> I have MySQL & the downloaded ODBC drivers. I am looking to use

Crystal Reports & MySQL

2005-04-28 Thread Kerry Frater
I have MySQL & the downloaded ODBC drivers. I am looking to use Crystal Reports to design & run my own reports on my tables. Can anyone tell me if the V11 Standard will happily work with MySQL or do I need a different version? Kerry

Secure access to the Data structures and data within MySQL

2004-09-30 Thread Kerry Frater
Perhaps someone can provide me with some of his or her experiences if looking at MySQL to implement a “secure from structure manipulation” in a commercial application using MySQL. I am currently evaluating the possible migration of my app to MySQL as the basis. I already have tested the creatio

update data according to value in other table

2004-09-26 Thread Kerry Frater
Can someone tell me if this is possible using the UPDATE command I have a table MASTER and a table called MASTERNOTES. Masternotes contains the blobs of data linked to MASTER that is stored separately for efficiency. Not all rows in MASTER has a note and therefore MASTERNOTES is a subset of MASTER

RE: How to get the last record from the slected record set

2004-08-23 Thread Kerry Frater
Hi, I don'e know if this will help as I am probably only one step ahead of you here, but if it does great. If not you can just delete it. How are you going to access the data? Via a program, PHP, using queries? I am a newbie to this area myself, and use Delphi. I know that using Delphi with the

RE: newbie question on scrolling through a table one record at a time

2004-08-21 Thread Kerry Frater
Many thanks for your reply Tom. I will read it more closely over the week-end, but wanted to say thanks straight away. Kerry -Original Message- From: Tom Horstmann [mailto:[EMAIL PROTECTED] Sent: 20 August 2004 15:52 To: 'Kerry Frater'; '"MySQL List"' S

newbie question on scrolling through a table one record at a time

2004-08-20 Thread Kerry Frater
Hi all, I don't think this is the right list for the question but I am hoping someone in the list will be able to point me in the right direction. I am testing the use of Delphi with MySQL (using Micoolap's DAC) to access and manipulate a number of tables in a databse. Some of the more complex str

RE: recommended books for web app.

2004-08-15 Thread Kerry Frater
Thanks Mike, your recommendations are very much noted. Kerry -Original Message- From: mos [mailto:[EMAIL PROTECTED] Sent: 15 August 2004 17:22 To: [EMAIL PROTECTED] Subject: Re: recommended books for web app. Kerry, At 08:09 AM 8/12/2004, you wrote: >I am looking to port an app from a

RE: recommended books for web app.

2004-08-15 Thread Kerry Frater
Peter, If you put any in your email reply - none came through. Kerry -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 15 August 2004 05:21 To: [EMAIL PROTECTED] Subject: Re: recommended books for web app. -- MySQL General Mailing List For list archives:

RE: recommended books for web app.

2004-08-12 Thread Kerry Frater
Thanks for your recommendation Peter Kerry -Original Message- From: Peter Brawley [mailto:[EMAIL PROTECTED] Sent: 12 August 2004 14:23 To: Kerry Frater; "MySQL List" Subject: Re: recommended books for web app. Welling & Thomson is terrific. - Or

recommended books for web app.

2004-08-12 Thread Kerry Frater
I am looking to port an app from an existing web environment to MySQL. The requirement is relatively easy. The Tables are read only and the data is to be only accessed via login & password. The login will give a limited view of records based on a master/detail table relationship. I need to be aware

RE: Creating a New User - What am I doing wrong?

2004-08-09 Thread Kerry Frater
Many thanks Paul, I will read and digest tomorrow in normat daylight hours. Kerry -Original Message- From: Paul DuBois [mailto:[EMAIL PROTECTED] Sent: 09 August 2004 20:55 To: Kerry Frater; "MySQL List" Subject: Re: Creating a New User - What am I doing wrong? At 20:25 +0

Creating a New User - What am I doing wrong?

2004-08-09 Thread Kerry Frater
I am using 4.0.20a Windows version downloaded as the binary file with Installer built in. The system was installed with the "defaults". Nothing was run and the default mysqld was allowed to run at start up. I have tried this using Windows XP, Windows 2000 Pro & Windows 98. I am testing the system

FW: creating a new user with "mysql" on 4.0.20a

2004-08-08 Thread Kerry Frater
Oops, used wrong email address -Original Message- Sent: 08 August 2004 12:23 To: [EMAIL PROTECTED] Subject: creating a new user with "mysql" on 4.0.20a I am just going through some taching docs and it says that I can create a new user with all authority on a new DB using the command GR

creating a new user with "mysql" on 4.0.20a

2004-08-08 Thread Kerry Frater
I am just going through some taching docs and it says that I can create a new user with all authority on a new DB using the command GRANT ALL ON llcopy.* TO auser IDENTIFIED BY 'thepassword'; yet when I try and run 'mysql' using mysql -uauser -pthepassword I get the error ERROR 1045: Access deni

keep losing login rights with MySQL

2004-08-06 Thread Kerry Frater
I have installed 4.0.20a binary on my own PC to work with MySQL. I take my PC home with me. The only thing I change at home is my IP address as my home n/w is different from my work n/w IP range and I have a VPN link between the office & home. Since using this version (.17 was there before) everyt

MySQL & Crystal Reports V9

2004-08-02 Thread Kerry Frater
Anyone know of some decent docs on how CR works with MySQL using ODBC 3.51. Just installed it today to see what it's like and am finding it cumbersome. This is most likely due to ignorance rather than the product. I was expecting to see a list of tables available for reporting when using a link t