🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.delphi.bazy-danych
Article #70189

Re: wartosc NULL poprzez ParamByName

#70189
From: Jacek
Date: Wed, 20 Jun 2007 10:54
23 lines
1446 bytes
Jeszcze raz to samo ale poprawnie:


  Jak wprowadzić do bazy danych (w moim przypadki SQL Anywhere)
  wartość NULL poprzez instrukcję: Query1.ParamByName('data'). ....

  Bardziej szczegółowo:

  Query1.SQL.Add('Insert into tabele (kod, data) values (:k, :d)');
  .
  .
  .
  Query1.ParamByName('kod').AsInteger := 1;

  i teraz chcę aby poprzez parametr d wprowadzić wartość NULL czyli
  chciałbym wpisać coś takiego:

  Query1.ParamByName('data'). .... := NULL


  Pozdrawiam
  Jacek
Technical Details
Message-ID: <f5b16j$oga$2@atlantis.news.tpi.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!opal.futuro.pl!news.internetia.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail
References: <f5b12o$oga$1@atlantis.news.tpi.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!opal.futuro.pl!news.internetia.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail
From: Jacek <sorry@nie.lubie.spamu>
Newsgroups: pl.comp.lang.delphi.bazy-danych
Subject: Re: wartosc NULL poprzez ParamByName
Date: Wed, 20 Jun 2007 12:54:38 +0200
Organization: tp.internet - http://www.tpi.pl/
Lines: 23
Message-ID: <f5b16j$oga$2@atlantis.news.tpi.pl>
References: <f5b12o$oga$1@atlantis.news.tpi.pl>
NNTP-Posting-Host: 80.54.123.217
Mime-Version: 1.0
X-Trace: atlantis.news.tpi.pl 1182337043 25098 80.54.123.217 (20 Jun 2007 10:57:23 GMT)
X-Complaints-To: usenet@tpi.pl
NNTP-Posting-Date: Wed, 20 Jun 2007 10:57:23 +0000 (UTC)
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
X-Accept-Language: en-us, en
In-Reply-To: <f5b12o$oga$1@atlantis.news.tpi.pl>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit