Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / January 2006

Tip: Looking for answers? Try searching our database.

Want to mask all the rows in a column at once?

Thread view: 
RG007 - 17 Jan 2006 04:42 GMT
I want  to mask all the data in the rows of a column using a character
i want suppose "x" for all the characters and "9'" for all the numbers
if the rows contain digits.
Right now I am having a code which goes to every character and checks
whether it is a number or alphabet and change to the required one.
But I want the code to be able to change the string at once to xxxxxxx
or 999999?
How to modify?
Roedy Green - 17 Jan 2006 05:41 GMT
>Right now I am having a code which goes to every character and checks
>whether it is a number or alphabet and change to the required one.
>But I want the code to be able to change the string at once to xxxxxxx
>or 999999?
>How to modify?

You will need a char by char loop. If you found a method, that is what
it woud do inside.
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.

Venky - 17 Jan 2006 08:43 GMT
If data is in the database, then you can do that in a single SQL
statement (or a single JDBC call). Otherwise I can't think of any such
java function which can modify all the rows at once.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.