Re: PRINT statement?

2006-05-13 Thread Stephen Cook
date_of_youngest_le" and the VALUE of that variable is shown only as "1990", NOT the correct value, which is "1990-05-11". The danger is that it is not obvious that the value of the variable has been truncated. When I first encountered this, I thought I'd written the

Re: PRINT statement?

2006-05-12 Thread Peter Brawley
e information is truncated. For example the value shown for the second variable name is shown as "birthdate_of_youngest_le" and the VALUE of that variable is shown only as "1990", NOT the correct value, which is "1990-05-11". The danger is that it is not obvious tha

Re: PRINT statement?

2006-05-12 Thread Mark Leith
Stephen Cook wrote: There are such things as extensions to the standard, and many languages besides BASIC that have the ability to output a character string. No need to be snippy. I will look into the --silent option, thanks! I also tend to use -BN with these kind of scripts: mysql -u use

Re: PRINT statement?

2006-05-12 Thread Stephen Cook
_of_youngest_le" and the VALUE of that variable is shown only as "1990", NOT the correct value, which is "1990-05-11". The danger is that it is not obvious that the value of the variable has been truncated. When I first encountered this, I thought I'd written t

Re: PRINT statement?

2006-05-11 Thread Peter Brawley
e shown for the second variable name is shown as "birthdate_of_youngest_le" and the VALUE of that variable is shown only as "1990", NOT the correct value, which is "1990-05-11". The danger is that it is not obvious that the value of the variable has been truncated.

Re: PRINT statement?

2006-05-11 Thread Stephen Cook
. The danger is that it is not obvious that the value of the variable has been truncated. When I first encountered this, I thought I'd written the date_sub() function incorrectly and messed around with it for awhile before I discovered the truncation problem. Therefore, my technique is to al

Re: PRINT statement?

2006-05-11 Thread Rhino
that variable is shown only as "1990", NOT the correct value, which is "1990-05-11". The danger is that it is not obvious that the value of the variable has been truncated. When I first encountered this, I thought I'd written the date_sub() function incorrectly and messed ar

RE: PRINT statement?

2006-05-10 Thread Quentin Bennett
s a string. Can include concatenated literal values and variables. The message string can be up to 8,000 characters long; any characters after 8,000 are truncated. -Original Message- From: Rhino [mailto:[EMAIL PROTECTED] Sent: Thursday, 11 May 2006 3:51 p.m. To: Stephen Cook Cc: MySQL

Re: PRINT statement?

2006-05-10 Thread Rhino
lternative. -- Rhino - Original Message - From: "Stephen Cook" <[EMAIL PROTECTED]> To: "Rhino" <[EMAIL PROTECTED]> Cc: "MySQL List" Sent: Wednesday, May 10, 2006 8:09 PM Subject: Re: PRINT statement? I've started using the SELECT with no

Re: PRINT statement?

2006-05-10 Thread Stephen Cook
I've started using the SELECT with no other clauses but I am still curious about a PRINT-like command. It is for SQL scripts. Rhino wrote: - Original Message - From: "Stephen Cook" <[EMAIL PROTECTED]> To: "MySQL List" Sent: Sunday, May 07, 2006 3:53 AM Subject: PRINT statement? Is

Re: PRINT statement?

2006-05-07 Thread Rhino
- Original Message - From: "Stephen Cook" <[EMAIL PROTECTED]> To: "MySQL List" Sent: Sunday, May 07, 2006 3:53 AM Subject: PRINT statement? Is there a statement similar to PRINT in T-SQL (MicroSoft SQL Server)? It would be handy to debug some scripts. If you're talking about a scr

Re: Print out

2003-02-16 Thread Van
mysql db -e "select * from test3;" | lpr Assuming Linux / UNIX, you have a line printer defined and db is the database to connect to. Van -- = Linux rocks!!! http://www.dedserius.com/ ==

Re: 'print' or '\p' from mysql prompt

2002-09-19 Thread Paul DuBois
At 11:58 -0500 9/19/02, Robert Fox wrote: >Hello- > >I've just started using MySQL so this is absolutely a 'newbie' >question. I'm used to working with Oracle's SQL*Plus which is a very >different tool. In SQL*Plus, I could type 'l' or 'list' at the >SQL*Plus prompt and see a printout to STDOUT

RE: print on top

2002-04-17 Thread Gurhan Ozen
Hi Jule, You need to sort your records with "ORDER BY" clause . I don't know what your table looks like and obviously don't know if you have suitable columd for it.. Say you have a newsid field defined with int datatype with auto_increment property, then you can issue your statement as "SELECT ..

Re: print on top

2002-04-17 Thread Dan Nelson
In the last episode (Apr 17), Mike said: > use ORDER BY ASC or DESC > > $Query = "SELECT * from $TableName ORDER BY DESC"; "ORDER BY postdate DESC", you mean? :) -- Dan Nelson [EMAIL PROTECTED] - Before postin

Re: print on top

2002-04-17 Thread Mike
Sorry, I forget the column name for the ORDER BY > $Query = "SELECT * from $TableName ORDER BY column_name DESC"; Mike - Original Message - From: "Mike" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; "Jule Slootbeek" <[EMAIL PROTECTED]>

Re: print on top

2002-04-17 Thread Mike
use ORDER BY ASC or DESC $Query = "SELECT * from $TableName ORDER BY DESC"; Mike - Original Message - From: "Jule Slootbeek" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, April 17, 2002 6:38 PM Subject: print on top > Hey guys and gals, > I'm writing

Re: Print From MySQL

2002-02-28 Thread Benjamin Pflugmann
Hi. On Thu, Feb 28, 2002 at 07:39:04PM -0500, [EMAIL PROTECTED] wrote: > Is there any way to print (to a printer) an ORDERed SElECT directly from No. MySQL is an RDBMS, not an printing tool. > MySQL without the use of scripting or programming? Well depends on how you define this... You didn't

Re: Print file

2002-02-12 Thread Gerald R. Jensen
Christo: Write a query that does what you want to a text file called virtusertable.sql: USE databasename; SELECT name FROM tablename; Then run the query from the command line (mysql -uusername -p databasenamevirtusertable.txt) Gerald Jensen - Original Message - From: "Christo Rademeyer"

Re: Print file

2002-02-12 Thread DL Neil
Hi Christo, > How can I take info from one table and print it into a txt file. > the table is (NAME) > and all the names in it I want to print out to a file name virtusertable. Would SELECT ... INTO OUTFILE 'file_name' suit you? (MySQL manual: 6.4.1 SELECT Syntax) Regards, =dn ---

Re: Print file

2002-02-07 Thread Gerald R. Jensen
Christo: Write a query that does what you want to a text file called virtusertable.sql: USE databasename; SELECT name FROM tablename; Then run the query from the command line (mysql -uusername -p databasenamevirtusertable.txt) Gerald Jensen - Original Message - From: "Christo Rademeyer"

Re: Print file

2002-02-07 Thread DL Neil
Hi Christo, > How can I take info from one table and print it into a txt file. > the table is (NAME) > and all the names in it I want to print out to a file name virtusertable. Would SELECT ... INTO OUTFILE 'file_name' suit you? (MySQL manual: 6.4.1 SELECT Syntax) Regards, =dn ---

Re: print database schema

2002-01-29 Thread Greg Willits
TED] Subject: Re: print database schema Hello more of a visual tool. The program I did see had views of all the tables as if you had done a "describe table_name" for each table, then had lines linking the relationships between tables (similar to what you can view in Access , even th

Re: print database schema

2002-01-28 Thread Sherwin Ang
You can run mysqldump from the command line, if you only want the schema you can do: mysqldump -u username databasename -d -p > my.dump man mysqldump to see more options. or if you want you can try phpmyadmin at http://www.phpwizard.net/projects/phpMyAdmin/ it is a web based admin tool for mysq

Re: print database schema

2002-01-28 Thread Steven Wren
Hello more of a visual tool. The program I did see had views of all the tables as if you had done a "describe table_name" for each table, then had lines linking the relationships between tables (similar to what you can view in Access , even though i hate to admit I have used it :) would just be

Re: print database schema

2002-01-28 Thread Paul DuBois
At 14:42 +1000 1/29/02, Steven Wren wrote: >Hello > >I was wondering if anyone knew of a program that would allow you to print >out a complete database. I have seen it on a PostGre DB, so I am sure >MySQL should have something... You mean mysqldump --no-data db_name ? > >cheers! > >Regards, > >

RE: print LABELS or ENVELOPES with DATA from MySQL

2001-12-29 Thread Norman Khine
Peter, You can create a link to M$ Access or M$ Excel via ODBC and then use this in your M$ Word as a MailMerge data source. There is no option in Word to use an ODBC data source. HTH Norman -Original Message- From: Peter Reck [mailto:[EMAIL PROTECTED]] Sent: 29 December 2001 09:56 To:

RE: print LABELS or ENVELOPES with DATA from MySQL

2001-12-29 Thread johnlucas
Peter I suggest getting hold of the MyODBC drivers (you'll find reference to it in the mysql manual) Once installed you can attached to mysql tables in MS Access, then use the report wizard in there to create your labels or if you are more confortable in word you can open the access mdb file wit

Re: print

2001-09-12 Thread Paul DuBois
At 2:14 PM -0400 9/12/01, Jeremy Morano wrote: >I am having a hard time printing > >Select * from table_1 \p; > > >the result is: > >-- >Select * from table_1 >-- > >. >. >. > >But it doesn't print. > >Anyone? Define what you mean by "print".

Re: print

2001-09-10 Thread Paul DuBois
At 3:18 PM -0400 9/10/01, Jeremy Morano wrote: >Hi, > >very simple question. > >I would like to save and print the contents of myDESCRIBE table_1; > >How would I do this? Use the --tee option to mysql to create a tee file that serves as a log of your session, and issue the statement interacti

Re: print

2001-09-10 Thread Van
Jeremy Morano wrote: > > Hi, > > very simple question. > > I would like to save and print the contents of myDESCRIBE table_1; > > How would I do this? Jeremy: mysql -e 'DESCRIBE table_1;' | lp Regards, Van -- = Linux rocks

Re: print out rows from array/perl

2001-02-11 Thread --==[bMan]==--
This is a question for PERL group but anyhow, read again the chapter in MySQL on printing results from MySQL using PERL. It prints continentA because that's what you have asked for. On Sunday 11 February 2001 15:36, Andreas Antes wrote: =>I have created 2 columns: =>col1 varchar(20) =>co