Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Uppcase string

Status
Not open for further replies.

jkscript

Programmer
Joined
Jun 20, 2002
Messages
9
Location
GB
Hi All,

Is it possible to accept a string and make it uppercase before storing it in the database?

Can this be done in the CREATE TABLE method?


Cheers
 
What you are asking is not a property of a table. "CREATE TABLE" will not do it.

When you insert your data, use MySQL's ucase() function:

insert into bar (the_data) values (ucase('foo')) ______________________________________________________________________
TANSTAAFL!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top