Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Table1 
Name       	Address
Alfon so desusa	23lane east south port
Barry richard	101suit north 
Harry	        51forest

How to achieve like below
Name	Address
Alfon	23lane
so	east
desusa	south
	port
Barry	101suit
richard	north  
Harry	51forest
Posted

Dont try and do what you are trying to do.
That does not follow first normal form.

What you can do instead is have four columns in your table - one each for firstname, middlename and lastname and one for the address. Make each of these varchar and make them can accept a fixed number of characters.
 
Share this answer
 
Yes as Abhinav says you can try that...

But you can also try to concat your string after getting from the database and use a string function to distinguish your string where it get blank space...
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900