473,385 Members | 1,474 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Waarde uit tabel incompleet

Eus
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.

Nov 24 '06 #1
3 1973
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).
Nov 24 '06 #2
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.
In that case, there is probably something wrong with the query. There
might be an implicit conversion, for example if you assign the value to
a variable. Maybe if you post the query someone can help you out.

In dat geval is er waarschijnlijk iets mis met de query. Het kan een
impliciete conversie zijn, bijvoorbeeld wanneer de waarde in een
variabele wordt gezet (met een ander data type). Als je de query post
kan iemand je wellicht verder helpen.

Gert-Jan
Nov 24 '06 #3
On 24 Nov 2006 04:53:38 -0800, 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.
Beste Eus,

(English version below)

Ter aanvulling op de antwoorden van Ed en Gert-Jan: de voertaal in deze
groep is Engels. Als je hulp in het Nederlands prefereert, dan kun je
beter posten in de groep microsoft.public.nl.sql - hoewel het aantal
mensen dat daar vragen beantwoordt beperkt is (maar dat geldt ook voor
het aantal mensen dat Nederlands leest in deze groep <g>). Uiteraard kun
je ook deze groep blijven gebruiken, maar dan kun je beter in het Engels
schrijven. In dat geval zul je ook meer antwoorden krijgen!

(English translation)

In addition to the answers given by Ed and Gert-Jan: the language in
this group is English. If you prefer help in Dutch, you'd better post in
microsoft.public.nl.sql - though the number of people answering
questions over there is limited (but the same holds for the number of
Dutch-spoken people in this group <g>). You can of course keep using
this group, but in that case you're better advised to post in English.
You'll get more answers that way!

--
Hugo Kornelis, SQL Server MVP
Nov 25 '06 #4

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

Similar topics

3
by: Maulin Vasavada | last post by:
Hi, I have DataTable and I want to actually put a LinkLabel in one the columns where I can click an do something BUT it seems I can't put LinkLabel in the table cell of DataTable. So as an...
2
by: gmalai | last post by:
Hi, I would like to know if it is possible to add a text box in table cell if I **double-click** in that particular table cell(the table was generated at runtime). If so, could you please give...
15
by: Geagleeye | last post by:
Hi. I need to interpolate som data i have in my tabel. my tabel looks like this. Y X 0 0 0,026 0,037 0,003 0,038 0,005 0,064
2
by: Geagleeye | last post by:
hi. im trying to interpolate som data i got in my tabel. Does any one got any code or example i could use.. hope somone want to help
9
by: elia | last post by:
Hello, I would like to show a line in a tabel in html if there is quantity of article choosed. My code is: <? if ($quantite1 0) { echo(' <tr>
7
by: Kristiansj | last post by:
Hey, I am a fairly novice coder and I am having some trouble making an elegant solution to the following problem: (pseudocode) ------------ switch (something) { case (something1) tabel =...
0
by: Steve Kirby | last post by:
You can't ... What you might try is: desc tabe1 This will list the columns in that table. You can select what you want to pull from that way.
1
by: arunbojan | last post by:
Dear All, Please advice me some tips in ASP.NET to make tabel attractive..... Arun
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.