🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: [SQL]Jak zastąpić wiersz tabeli?

#194949
From: Tomek D
Date: Wed, 11 May 2016 08:22
11 lines
1198 bytes
W dniu 2016-05-11 o 09:06, Borneq pisze:
> Insert nie działa gdy mamy w bazie już wiersz o tym samym kluczu
> głównym. Jeden sposób to delete i to z selectem istniejącego wiersza,
> a czy istnieje szybszy sposób zastąpienia?

W zależności od serwera bazy danych
MERGE
UPDATE OR INSERT
albo inne

Tomek D.
Technical Details
Message-ID: <nguq49$ifk$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
References: <ngullf$fc2$1@node2.news.atman.pl>

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: Tomek D <bez@dresu.invalid>
Newsgroups: pl.comp.bazy-danych
Subject: Re: [SQL]Jak zastąpić wiersz tabeli?
Date: Wed, 11 May 2016 10:22:38 +0200
Organization: ATMAN - ATM S.A.
Lines: 11
Message-ID: <nguq49$ifk$1@node1.news.atman.pl>
References: <ngullf$fc2$1@node2.news.atman.pl>
NNTP-Posting-Host: 82.160.134.181
Mime-Version: 1.0
X-Trace: node1.news.atman.pl 1462954953 18932 82.160.134.181 (11 May 2016 08:22:33 GMT)
X-Complaints-To: usenet@atman.pl
NNTP-Posting-Date: Wed, 11 May 2016 08:22:33 +0000 (UTC)
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2
In-Reply-To: <ngullf$fc2$1@node2.news.atman.pl>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit