ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Evgeniy Kobzev <evgenik@diamonds.ru>
To: community@altlinux.ru
Subject: Re: [Comm] SQLite 3.0
Date: Wed, 01 Dec 2004 16:31:19 +0300
Message-ID: <41ADC7A7.2040109@diamonds.ru> (raw)
In-Reply-To: <41ADB79A.3000109@diyaorg.dp.ua>

Roman Savochenko пишет:
> 
> INSERT INTO "test" SELECT "name","descr","val","id","stat" FROM 
> "temp_test";DROP TABLE "temp_test";
> TEST:BD:ERROR| sqlite: table test has 6 columns but 5 values were supplied

Таблица test имеет 6 колонок, а передано 5 значений.
Ошибка будет с любым SQL сервером.
Нужно делать
INSERT INTO "test" (список, полей, для, которых, есть, значения, в, 
выражении, select) SELECT "name","descr","val","id","stat" FROM "temp_test"
Это уже из оперы "Понимание SQL".


  reply	other threads:[~2004-12-01 13:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-25 11:27 Roman Savochenko
2004-11-25 11:37 ` Guest007
2004-11-25 13:55   ` Roman Savochenko
2004-12-01 12:22   ` Roman Savochenko
2004-12-01 13:31     ` Evgeniy Kobzev [this message]
2004-12-01 13:47       ` Roman Savochenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=41ADC7A7.2040109@diamonds.ru \
    --to=evgenik@diamonds.ru \
    --cc=community@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git