VoyForums
[ Show ]
Support VoyForums
[ Shrink ]
VoyForums Announcement: Programming and providing support for this service has been a labor of love since 1997. We are one of the few services online who values our users' privacy, and have never sold your information. We have even fought hard to defend your privacy in legal cases; however, we've done it with almost no financial support -- paying out of pocket to continue providing the service. Due to the issues imposed on us by advertisers, we also stopped hosting most ads on the forums many years ago. We hope you appreciate our efforts.

Show your support by donating any amount. (Note: We are still technically a for-profit company, so your contribution is not tax-deductible.) PayPal Acct: Feedback:

Donate to VoyForums (PayPal):

Login ] [ Contact Forum Admin ] [ Main index ] [ Post a new message ] [ Search | Check update time | Archives: 1[2] ]
Subject: Re: Hækka sjóliða?


Author:
Hjálmtýr
[ Next Thread | Previous Thread | Next Message | Previous Message ]
Date Posted: 23:08:27 21/Oct/2007
In reply to: 's message, "Hækka sjóliða?" on 16:04:04 21/Oct/2007

>Er í smá vandræðum með að hækka "raiting" hjá
>sjóliðunum. Er búinn að útbúa pottþéttan kóða sem á að
>framkvæma þetta en hann bara virkar ekki :) Prufaði að
>skella sýnilausninni incr_raiting óbreyttri inn í SQL
>skipanagluggann og þá hækkaði heldur enginn sjóliði í
>raiting. Er ég að gleyma einhverju?

Til að framkvæma fallið þarftu fyrst að setja það inn, t.d. með því að opna skránna í fyrirspurnarglugga (Query window)
í pgAdmin og slá á F5. Síðan þarftu að kalla á fallið til að það framkvæmist. Það geturðu gert með skipuninni hér
að neðan:

select incr_rating(22);

Í sýnisfallinu þá hækkar fallið rating hjá sjóara með sid=22.

[ Next Thread | Previous Thread | Next Message | Previous Message ]

Replies:
Subject Author Date
Re: Hækka sjóliða?Fróði17:42:25 22/Oct/2007


[ Contact Forum Admin ]


Forum timezone: GMT+0
VF Version: 3.00b, ConfDB:
Before posting please read our privacy policy.
VoyForums(tm) is a Free Service from Voyager Info-Systems.
Copyright © 1998-2019 Voyager Info-Systems. All Rights Reserved.