🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.bazy-danych
Article #195194

Szybkie wypełnianie zerami tabeli

#195194
From: Borneq
Date: Fri, 20 Jan 2017 10:02
23 lines
1168 bytes
w tabeli może być kilka rekordów typu

567, 1,2
753, 0,1

gdzie 567 i 753 to klucz
Czy dało by radę szybko przy pomocy polecenia SQL zrobić Insert ingore, 
tak że powstało by
0,0,0
1,0,0
2,0,0
3,0,0
....
566, 0,0
567, 1,2
568, 0,0
....
753, 0,1
...
100000, 0,0

Bez 100 tysięcy wołań w pętli "Insert ..Ingore"
?
Technical Details
Message-ID: <o5sn7j$9es$1@node1.news.atman.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail
From: Borneq <borneq@antyspam.hidden.pl>
Newsgroups: pl.comp.bazy-danych
Subject: Szybkie wypełnianie zerami tabeli
Date: Fri, 20 Jan 2017 11:02:26 +0100
Organization: ATMAN - ATM S.A.
Lines: 23
Message-ID: <o5sn7j$9es$1@node1.news.atman.pl>
NNTP-Posting-Host: 91.239.205.105
Mime-Version: 1.0
X-Trace: node1.news.atman.pl 1484906547 9692 91.239.205.105 (20 Jan 2017 10:02:27 GMT)
X-Complaints-To: usenet@atman.pl
NNTP-Posting-Date: Fri, 20 Jan 2017 10:02:27 +0000 (UTC)
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0
X-Mozilla-News-Host: news://news.atman.pl:119
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit