473,805 Members | 2,270 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

number defined being truncated in select (sorry double posting ;-( )

We have a customer that is encountering a strange situation.

He has found that if he has a column defined in the DB as a number it only
diplays within the first 7 digits. However if he have the same data in a
column defined as number(9) there is not problem.

table tmp_customer (custid1 number(9), custid2 number) values
(123456789,1234 56789)
when he selects this data using a ORACLE 9 driver in the connection setup he
gets:

CUSTID1 CUSTID2
123456789 1234567

He has tried this same scenario against and ORACLE 8 DB and have no problem

Any suggestion on that one ?

I have been reading the documentation and it is clearly stated that it is up
to 38 digit so I guess 7 would be OK.

I do not know if there is any setting that can affect that ?

Thanks

Pascal


--


Jul 19 '05 #1
0 1820

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
23114
by: Jay Chan | last post by:
The transaction log in a database in our SQLSERVER-2000 server has grown to 16GB. I cannot shrink the transaction log manually because it says that the entire 16GB log size is not free. This is strange because we backup the transaction log every hour, and that should have truncated the transaction log, and should have limited the size of the transaction log; somehow, the entire transaction log is still marked as being used. I was under...
3
40183
by: RDRaider | last post by:
How can I find which record(s) cause this error: Server: Msg 8152, Level 16, State 9, Line 1 String or binary data would be truncated. The statement has been terminated. I have tried Profiler but I can't get it to tell me which records are causing the error. Here's the script I'm running: EXEC sp_executesql N'UPDATE IMDISFIL_SQL
16
4230
by: Jason | last post by:
Hi, I need a way to use random numbers in c++. In my c++ project, when using the mingw compiler I used a mersenne twister that is publicly available and this did its job well. Now I have shelled out on VC++ 6.0 compiling that same code is proving difficult. I am not too worried how I generate random numbers in c++, as long as it is sufficiently random. Can anybody help me out in getting what I want from VC++?
10
2417
by: chanma | last post by:
code1:var x=0xf0000000; alert(x); output:4026531840 code2:var b=0xf<<28; alert(b); output:-268435456
43
6590
by: Xancatal | last post by:
Hey everybody. I need help on this one. I need to verify that a number entered by a user is not either a negative number (-100.00), or an alphabet (a, b, c, X, Y) as well as other number other than positive integers or a decimal point. For example: Enter amount: and was capturing the float varialbe as in: scanf ("%f", &myVar)
2
1718
by: The Cool Giraffe | last post by:
I've designed a method in the class called Blopp. class Blopp { void foo (int a = 3, double b = 3.6) {} } ; The problem is only that when i call the method, the value of b seems to be truncated, if one believes the (un?) helpful IDE that pops out an info-note. On it, the value has been clearly lowered to 3.0! I went debugger on it and it seems that the actual
16
2902
by: Dom Fulton | last post by:
Has anyone got a mechanism for finding the number of bits in floats, doubles, and long doubles? I need this to communicate with some hardware. I guess I could try to deduce this from float.h, but that looks difficult. I don't mind something which is system-specific; the older gccs had various defines in cpu_limits.h and related files, but I can't find anything in later gccs.
0
188
by: Pascal | last post by:
We have a customer that is encountering a strange situation. He has found that if he has a column defined in the DB as a number it only diplays within the first 7 digits. However if he have the same data in a column defined as number(9) there is not problem. table tmp_customer (custid1 number(9), custid2 number) values (123456789,123456789) when he selects this data using a ORACLE 9 driver in the connection setup he gets:
8
1714
by: =?Utf-8?B?ZG1idXNv?= | last post by:
I'm migrating a VB.NET 2003 application to VB.NET 2008. The 2003 app used the June 2005 Enterprise Library while I'm going to use the latest EntLib, 4.0 - May 2008. I copied the 2003 app to a new 2008 folder structure, recreated the app.config using the new 4.0 EntLib config tool, and referenced the 4.0 Microsoft.Practices.EnterpriseLibrary.Data.dll file. The problem is there is a Function that has errors in it and I'm not sure how to...
0
9718
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9596
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10363
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10109
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5544
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5678
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4327
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3847
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3008
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.