954,560 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

multiple line table field

hi! another query!
i want to insert values into the table 'employee' for the 'adddress' field in such a way that the large address comes in two or three lines like this

empid	empname	        address	        mobile	        grade	basic
Joyban1	Joy banerjee	5/67,	        1234567890	2000	10000
		        nehru colony,			
		        kolkata			
		        700045

because if the address is in one line then the whole table is displayed in a haphazard way in the command line.
but if i use

insert into employee(empid,empname.address,mobile,grade,basic)
                    values('joyban1','joy banerjee','5/67,\n nehru colony,\n kolkata-\n700045',1234567890,2000,10000);


the table is displayed in a haphazard manner!
please help!

joy39
Newbie Poster
16 posts since Oct 2011
Reputation Points: 10
Solved Threads: 0
 

It sounds like you are trying to enforce presentation into the database which is not the right way to go about it. The database simply holds data, the interface needs to parse the data into the desired form.

hericles
Practically a Posting Shark
823 posts since Nov 2007
Reputation Points: 136
Solved Threads: 167
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You