473,659 Members | 2,645 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

string function which works like stringtocknizer (java)

2 New Member
hello frnds
am new to mysql.i wan to separate my string.In java we have same function stringtocknizer ..is there any function available in mysql ?
Mar 17 '08 #1
3 1307
ronverdonk
4,258 Recognized Expert Specialist
Welcome to The Scripts!

Since lots of members in this forum do not know Java, it is better to explain what you want to achieve with this function.

Ronald
Mar 17 '08 #2
urvekshah
2 New Member
Welcome to The Scripts!

Since lots of members in this forum do not know Java, it is better to explain what you want to achieve with this function.

Ronald
stringtocknizer function parse string in to tokens by specified our deimiter..

for ex: str1=a,b,c,d,e, f;
stringtocknizer ( a , ' , ' );
this function find all substring sepreted by ,
so while(nextocken ())
returns substrings separeted by ,
Mar 17 '08 #3
ronverdonk
4,258 Recognized Expert Specialist
There are a couple of these functions in PHP. Look at explode funtion which splits that string into an array.
E.g.[php]$str = 'one|two|three' ;
print_r(explode ('|', $str));
[/php]results in an array $str
Expand|Select|Wrap|Line Numbers
  1. Array
  2. (
  3.     [0] => one
  4.     [1] => two
  5.     [2] => three
  6. )
See the php manual on other functions.

Ronald
Mar 17 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
12382
by: Thomas Rokamp | last post by:
Hi! I'm testing a russian webpage with HttpUnit, but it seems, that it doesn't support the encoding (Win-1251). How can I add support for this in Java or HttpUnit? java.io.UnsupportedEncodingException: WIN-1251 at sun.io.Converters.getConverterClass(Converters.java:114) at sun.io.Converters.newConverter(Converters.java:145) at
4
1843
by: Don Grover | last post by:
I hope some one can help, I have a html table that is created with asp that has a row of repeated buttons down the side. these call a page passing a query string with invoice number. I need to get a Java Yes/No dialog up and on yes call the hyperling query string. I can do this with a single hyperlink but not passing on the query string and invnumber Here is my Response Write link
0
1174
by: Andrej | last post by:
hi, i have a java webservice which i would like to invoke from .net Application. i am able to generate the proxy class, but if i try to invoke the webservice i got an exception of type "java.lang.Nullpointer". if i run the webservice in the debugmode i got an exception: Message="Tried to invoke method public byte...
0
1876
by: snkssa | last post by:
Hi, I got the following error while building an application with ant. please can you give the solution or reason why it is failing? Thank you create_zip_linux: ##################################
1
2734
by: marty.gagnon | last post by:
I have a xsl file that references a xml file using the document() function. I'm having trouble specifying the URI in the document() function of a xls stylesheet. I'm using java to transform the stylesheet, and when it evaluates the document() function, it cannot find the specified file. This is how I reference the xml file I'm having trouble with <xsl:value-of select="document('glcodes.xml',//)/glcodes/code"/>
0
3270
by: jaywak | last post by:
Just tried running some code on Linux (2.4.21-32.0.1.EL and Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)) and Windows XPSP2 (with Java HotSpot(TM) Client VM (build 1.5.0_11-b03, mixed mode, sharing)) and in both cases, get the following list returned from calling getDeclaredFields() on java.lang.ClassLoader via this code snippet: Field fields = loaderClass.getDeclaredFields(); for (int i = 0; i <...
2
1533
JavaStudent07
by: JavaStudent07 | last post by:
H:\>c:\j2sdk1.4.1\bin\javac.exe BubbleSort.java H:\>c:\j2sdk1.4.1\bin\java.exe BubbleSort Please input the name of the file from which the data will be acquired. Be sure to use the entire path. h:\Numbers.txt 67 34 5 6 23 12 16 First Character: 6 PlaceHolder: 1 Character:7
11
7692
by: hamiltongreg | last post by:
I am new to Java and am having problems getting my program to compile correctly. My assignment is as follows; Choose a product that lends itself to an inventory (for example, products at your workplace, office supplies, music CDs, DVD movies, or software). • Create a product class that holds the item number, the name of the product, the number of units in stock, and the price of each unit. • Create a Java application that displays the...
0
8751
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8539
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8630
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7360
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6181
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4176
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4342
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2759
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1739
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.