Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Truncate string when insert

Posted on 2006-06-26
3
Medium Priority
?
2,247 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 1500 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In this series, we will discuss common questions received as a database Solutions Engineer at Percona. In this role, we speak with a wide array of MySQL and MongoDB users responsible for both extremely large and complex environments to smaller singl…
This post looks at MongoDB and MySQL, and covers high-level MongoDB strengths, weaknesses, features, and uses from the perspective of an SQL user.
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

927 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