Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

How to insert control characters into varchar column

 
   Database Help (Home) -> Ingres RSS
Next:  Database Designers, Developers and Architects boa..  
Author Message
Mark

External


Since: Apr 03, 2008
Posts: 2



(Msg. 1) Posted: Thu Aug 28, 2008 9:56 am
Post subject: How to insert control characters into varchar column
Archived from groups: comp>databases>ingres (more info?)

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

 >> Stay informed about: How to insert control characters into varchar column 
Back to top
Login to vote
Martin Bowes

External


Since: Feb 05, 2008
Posts: 17



(Msg. 2) Posted: Thu Aug 28, 2008 10:32 am
Post subject: Re: [Info-Ingres] How to insert control characters into varchar [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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.RemoveThis@kettleriverconsulting.com
[mailto:info-ingres-bounces@kettleriverconsulting.com] On Behalf Of Mark
Sent: 28 August 2008 09:56
To: info-ingres.RemoveThis@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.RemoveThis@kettleriverconsulting.com
http://www.kettleriverconsulting.com/mailman/listinfo/info-ingres

 >> Stay informed about: How to insert control characters into varchar column 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Long varchar vs Long byte - Hi, Is there any practical difference between a 'long varchar' column compared to a 'long byte' column field? Long varchar seems to accept binary data without problem. We are just storing and then retriving the data, the column will not appear in...

Error while adding column using ALTER TABLE - Hi, I get this error when trying to add a column using ALTER TABLE... The Error is... E_QE009D Alter Table ADD/DROP column support for pages greater than 2k only. The SQL statement is... alter table abc add column xyz varchar(100); The..

Anyone using Plone with Ingres? - I'm currently playing about with Plone and Ingres (i.e. I have created a ZODB that is stored in an Ingres database). I am curious to know who else is. Roy

Windows Server 2003 Ingres Net Problems - Gday, I am running Ingres Net (version 2.6 SP2) on a Windows Server 2003 box with ODBC Driver version 3.50.00.32 and am having some problems with stability. Essentially the problem is that I get a random Ingres ODBC error ERROR [HY000] [CA][Ingres ODBC...

ODBC error message: Unable to authenticate client's user ID - Hi list, we have two machines: 1. Suse Linux with Ingres 2.6 SP2 DBMS 2. Win 2000 Server with IngresNet (client-only) 2.5 The Win 2000 box starts a Borland-Delphi-app that connects via ODBC, unfortunately this fails. Errlog.log on the Windows machine....
   Database Help (Home) -> Ingres All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]