Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / Ingres Topics / August 2008

Tip: Looking for answers? Try searching our database.

How to insert control characters into varchar column

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mark - 28 Aug 2008 09:56 GMT
Hi,

I need to reproduce a problem that is occurring in a database.  I
think that stray control characters are being added to a varchar
column.

Can anyone tell me how to insert control characters using terminal
monitor or qbf so I can test my theory?

TIA.
Signature

(\__/)  M.
(='.'=) Owing to the amount of spam posted via googlegroups and
(")_(") their inaction to the problem. I am blocking most articles
posted from there.  If you wish your postings to be seen by
everyone you will need use a different method of posting.
See http://improve-usenet.org

Martin Bowes - 28 Aug 2008 10:32 GMT
Hi Mark,

There are two ways.

In terminal monitor preceed the control character with a CTRL-V. The
CTRL-V will not echo.

ie to enter a CTRL-M type ... <CTRL-V><CTRL-M>
create table x(a varchar(20))\g
insert into x values('asdf')\g
insert into x values('asdf^Mduck')\g
select * from x\g
lqqqqqqqqqqqqqqqqqqqqk
xa                   x
tqqqqqqqqqqqqqqqqqqqqu
xasdf                x
xasdf\rduck          x
mqqqqqqqqqqqqqqqqqqqqj

The alternative is to enter a specific hex character like so...
insert into x values('tom' + X'0a' + 'dick')\g

The select would now also show: tom\ndick

Martin Bowes

-----Original Message-----
From: info-ingres-bounces@kettleriverconsulting.com
[mailto:info-ingres-bounces@kettleriverconsulting.com] On Behalf Of Mark
Sent: 28 August 2008 09:56
To: info-ingres@kettleriverconsulting.com
Subject: [Info-Ingres] How to insert control characters into varchar
column

Hi,

I need to reproduce a problem that is occurring in a database.  I
think that stray control characters are being added to a varchar
column.

Can anyone tell me how to insert control characters using terminal
monitor or qbf so I can test my theory?

TIA.
Signature

(\__/)  M.
(='.'=) Owing to the amount of spam posted via googlegroups and
(")_(") their inaction to the problem. I am blocking most articles
posted from there.  If you wish your postings to be seen by
everyone you will need use a different method of posting.
See http://improve-usenet.org

_______________________________________________
Info-Ingres mailing list
Info-Ingres@kettleriverconsulting.com
http://www.kettleriverconsulting.com/mailman/listinfo/info-ingres

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.