Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Truncate string when insert

Posted on 2006-06-26
3
2,232 Views
Last Modified: 2011-09-20
Hi all

I have dump insert statement in mysql, It is very strange that some other mysql engine did not insert full string:
e.g;
insert into mytable (page, modul_id, layout, designable, type, config, name)
('bb/eintrag/default',23,'table',1,'default',0,'#request.text(\"dbtext Einträge von A bis Z\")#')

So the name value must be #request.text(\"dbtext Einträge von A bis Z\")# but it inserted #request.text("dbtext Eintr
The field "name" is varchar(255)

Any idea?
0
Comment
Question by:HuyBD
  • 2
3 Comments
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 500 total points
ID: 16982308
insert into mytable (page, modul_id, layout, designable, type, config, name)
('bb/eintrag/default',23,'table',1,'default',0,'#request.text(\\"dbtext Einträge von A bis Z\\")#')
0
 
LVL 17

Author Comment

by:HuyBD
ID: 16982491
Thank AngelIII.
I have missing, the actual data is #request.text("dbtext Einträge von A bis Z")#
the backward slash was added when I export data, and the value of field after I insert to another db is #request.text("dbtext Eintr
the value that exec your query is #request.text(\"dbtext Eintr
I dont known what option to set, some machine work well while another is not, I use SQLyog 4.1
I will run query with other tool and inform you result later

0
 
LVL 17

Author Comment

by:HuyBD
ID: 16990641
Yes, It cause by SQLyog,
thanks anyway!
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

More Fun with XML and MySQL – Parsing Delimited String with a Single SQL Statement Are you ready for another of my SQL tidbits?  Hopefully so, as in this adventure, I will be covering a topic that comes up a lot which is parsing a comma (or other…
I have been using r1soft Continuous Data Protection (http://www.r1soft.com/linux-cdp/) for many years now with the mySQL Addon and wanted to share a trick I have used several times. For those of us that don't have the luxury of using all transact…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

789 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question