How to insert control characters into varchar column

This is a discussion on How to insert control characters into varchar column within the Ingres Database forums in Other Databases category; 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. -- (\__/) 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...

Go Back   Database Forum > Other Databases > Ingres Database

Database Forums

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-28-2008, 05:56 AM
Default 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.
--
(\__/) 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

Reply With Quote
  #2  
Old 08-28-2008, 06:32 AM
Default Re: [Info-Ingres] How to insert control characters into varcharcolumn

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 ...
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-at-kettleriverconsulting.com
[mailto:info-ingres-bounces-at-kettleriverconsulting.com] On Behalf Of Mark
Sent: 28 August 2008 09:56
To: info-ingres-at-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.
--
(\__/) 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-at-kettleriverconsulting.com
http://www.kettleriverconsulting.com...fo/info-ingres

Reply With Quote
Reply


Thread Tools
Display Modes



All times are GMT -4. The time now is 01:15 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Integrated by bbpixel2008 :: jvbPlugin R1013.368.1

Search Engine Friendly URLs by vBSEO 3.1.0
vB Ad Management by =RedTyger=
In an effort to better serve ads to our visitors, cookies are used on Mydatabasesupport.com. For more information, check out our Privacy Policy.