Max int value of char field? How to find...

2001-10-22 Thread Kraa de Simon

Hello all,

How can I find the highest integer value in a result set like:

1
10
11
2
3
a
ab
abc

I'm looking for the value 11.

The statement 'select max(field) from table' gives me 'abc' so this won't
do.

Any ideas for a SQL statement that will do the trick?

I'm using PHP / MySQL.

Thanks!

Simon.

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Backup question

2001-09-10 Thread Kraa de Simon

Hi,

I'm running MySQL on a NT box and do a nightly backup of the complete file
system to tape.

I know I should use mysqldump and probably stop MySQL but will a file system
copy do as well? The system is inactive at the time.

Met vriendelijke groet / With kind regards,

ICL Nederland B.V.  Simon de Kraa
e-Applications / Logistic Systems   Systems Architect
Het Kwadrant 1  Tel. +31 346 598865
Postbus 4000Fax  +31 346 562703
3600 KA  MAARSSEN
The Netherlands mailto:[EMAIL PROTECTED]

---

Progress 9.1b, Roundtable 9.1c, NuSphere Pro Advantage 2.2 @ MS Windows 2000
5.00.2195 SP 2
Progress 9.1b @ SCO UnixWare 7.1.1

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php