Article View: pl.comp.bazy-danych
Article #183475Re: [mssql] Jak zrobić takie złączenie?
From: wloochacz
Date: Mon, 13 Jul 2009 11:47
Date: Mon, 13 Jul 2009 11:47
16 lines
1594 bytes
1594 bytes
\n pisze:
> o pisze:
>
>> Zrobiłem to tak jak napisałeś i wszystko działa.
>> Kod pocztowy z adresu przekazanego do @s wyrzeźbiłem tak:
>>
>> SELECT SUBSTRING (@s, PATINDEX('%[0-9][0-9]-[0-9][0-9][0-9]%', @s), 6)
>>
>
> Gorzej jak trafią się dwa takie patterny w ciągu.
> Dajmy na to posesja zajmuje dwie działki i ma nr 99-100.
I dlatego jest to rzeźba - a poza tym nic się nie stanie, tylko tyle że
zwróci pierwsze wystąpienie zadanego ciągu w wyrażeniu...
--
wloochacz
Technical Details
Message-ID:
<h3f6ui$1ti$1@atlantis.news.neostrada.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.onet.pl!newsfeed.neostrada.pl!nemesis.news.neostrada.pl!atlantis.news.neostrada.pl!news.neostrada.pl!not-for-mailReferences:
<h3eucn$9nm$1@mx1.internetia.pl> <h3f11p$3v3$1@nemesis.news.neostrada.pl> <h3f4k9$t3l$1@mx1.internetia.pl> <h3f6sh$bom$1@nemesis.news.neostrada.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.onet.pl!newsfeed.neostrada.pl!nemesis.news.neostrada.pl!atlantis.news.neostrada.pl!news.neostrada.pl!not-for-mail From: wloochacz <nospam.wloochacz@nospam.dgbit.pl> Newsgroups: pl.comp.bazy-danych Subject: Re: [mssql] Jak zrobić takie złączenie? Date: Mon, 13 Jul 2009 13:47:50 +0200 Organization: TP - http://www.tp.pl/ Lines: 16 Message-ID: <h3f6ui$1ti$1@atlantis.news.neostrada.pl> References: <h3eucn$9nm$1@mx1.internetia.pl> <h3f11p$3v3$1@nemesis.news.neostrada.pl> <h3f4k9$t3l$1@mx1.internetia.pl> <h3f6sh$bom$1@nemesis.news.neostrada.pl> NNTP-Posting-Host: plast-box.pl Mime-Version: 1.0 X-Trace: atlantis.news.neostrada.pl 1247485714 1970 195.205.119.237 (13 Jul 2009 11:48:34 GMT) X-Complaints-To: usenet@news.neostrada.pl NNTP-Posting-Date: Mon, 13 Jul 2009 11:48:34 +0000 (UTC) User-Agent: Thunderbird 2.0.0.22 (Windows/20090605) In-Reply-To: <h3f6sh$bom$1@nemesis.news.neostrada.pl> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit