|
Posted by Ed Murphy on 11/24/06 18:26
Eus wrote:
> Ik wil uit een tabel het gehele getal halen, de waarde staat als
> 05612123 maar wanneer ik dit
> opvraag in bv. de Query Analyzer wordt de waarde gegeven als 5612123.
> De 0 welke ervoor staat wordt
> dus niet afgebeeld. De tabel in de kolom heeft als Data Type char, de
> Length staat op 10 en Allow Nulls staat aangevinkt. Wie kan mij helpen?
> Dank.
<babelfish>
Subject: Value table incomplete
I want obtain the whole number from a table, the value stands as
05612123 but when I ask this in e.g. the Query Analyzer are given the
value as 5612123. 0 which state is not represented therefore. The table
in the column has char as dates type, the Length stand up 10 and Allow
Nulls stand aangevinkt. Who help can me? Thanks.
</babelfish>
If you change e.g. SELECT FOO FROM BAR to SELECT 'X'+FOO FROM BAR, does
the 0 appear or not? If it does, then Query Analyzer was stripping the
0; if it doesn't, then the 0 was stripped during the insert, or quite
possibly before the insert (e.g. if the data passed through Excel on
its way to your database).
Navigation:
[Reply to this message]
|