Login | Register   
RSS Feed
Download our iPhone app
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.

Tip of the Day
Language: SQL Server
Expertise: Beginner
Apr 20, 1997



Application Security Testing: An Integral Part of DevOps

Stripping concatenated fields

I have a table that contains a concatenated field delimited by colons. The field contains approximately six values I want to house as separate columns on the table. How can I strip the concatenated field into the individual values and add them as columns to the table?

Unless the columns happen to have exactly the same length every time you perform this operation, there is nothing in standard SQL that will help.

If the columns were exactly the same length, you could use a substring function to pull out each component. You would have to check your particular server's documentation on the availability of text functions since each product varies.

DevX Pro
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.
Thanks for your registration, follow us on our social networks to keep up-to-date