geting substrings and showing as a new field.

A place for users and developers of the Xataface to discuss and receive support.

geting substrings and showing as a new field.

Postby ulisespm » Wed Jun 24, 2009 9:14 am

Hi Steve, Hi All:

I need to "make" a field based on some substrings from another fields (name, lastname).

I've tried to perform it in MyPhpAdmin but I couldn't.

Any idea about how to perform this task?

Thanks in advance for your help.
Best Regards
U.
ulisespm
 
Posts: 8
Joined: Fri Jun 19, 2009 1:59 pm
Location: Puebla

Re: geting substrings and showing as a new field.

Postby cragthehack » Wed Jun 24, 2009 4:47 pm

ulisespm wrote:Hi Steve, Hi All:

I need to "make" a field based on some substrings from another fields (name, lastname).

I've tried to perform it in MyPhpAdmin but I couldn't.

Any idea about how to perform this task?

Thanks in advance for your help.


You can do it in the sql. Take a look at the concat function in mysql. here's a link to all string fuctions for mysql: http://dev.mysql.com/doc/refman/5.0/en/ ... tions.html
cragthehack
 
Posts: 2
Joined: Tue Jun 23, 2009 8:23 pm

Thanks!

Postby ulisespm » Thu Jun 25, 2009 9:14 am

Thanks for your reply.

I've looked for substring and concat mysql functions. Unfortunately I don't know how to make that a field gets those functions and "build" the new content for each user.

I mean, in my PhpMyAdmin I have inserted the "query" in the SQL Editor and it only allows me to perform this action (substring, concat) with the content of a single register, not with the "field" itself...

Please help me

Thanks in advance
Best Regards
U.
ulisespm
 
Posts: 8
Joined: Fri Jun 19, 2009 1:59 pm
Location: Puebla


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 9 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved