Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Windows RDP Only Rs.500 a month
Blogerwiki
Updated:
Yesterday at 12:41 PM
Ad icon
V2ray VPN for Tunneling
hu KANNA
Updated:
Oct 22, 2026
FREE SEO Check & Google Maps Check for Sri Lankan Businesses | Web Design, Website Price Rs 14,900 |
LankaSolve
Updated:
Oct 20, 2026
ඕනම රටකට සෙට් වෙන CV එකක්
ErMurazor
Updated:
Oct 17, 2026
Hambantota
7 Acres Beachfront Land For Sell DownSouth , PerPerch Price 420 000
1024 Digital
Updated:
Oct 14, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri Talk!
Algorithm Help - Database Referral
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="thinking_guy" data-source="post: 20774319" data-attributes="member: 351690"><p><span style="font-size: 15px">උඹ දීල තියෙන රූල්ස් වල විදියට, බොසා (A001) තමයි කිසිම reference එකක් නැති චේන් එකේ අන්තිමට ඉන්න එකා. ඒ කියන්නෙ මොන user_id එක ගත්තත් අන්තිමට referrer ලව හොයාගෙන හොයාගෙන යද්දී ලූප් එක ඉවර වෙන්න ඕන A001 ගෙන්.</span></p><p><span style="font-size: 15px"></span></p><p><span style="font-size: 15px">උඹ කෝඩින් කරන භාෂාව මොකක්ද දන්නෙ නෑ. එත් Pseudo code එකක් නම් පල්ලෙහා තියෙන විදියට හදන්න පුළුවන්.</span></p><p><span style="font-size: 15px"></span></p><p><span style="font-size: 15px"><strong>UserId As String</strong></span></p><p><span style="font-size: 15px"><strong>ReferrerId As String</strong></span></p><p><span style="font-size: 15px"><strong>ReferrerList As List</strong></span></p><p><span style="font-size: 15px"><strong></strong></span></p><p><span style="font-size: 15px"><strong>Input a value to UserId to search for.</strong></span></p><p><span style="font-size: 15px"><strong></strong></span></p><p><span style="font-size: 15px"><strong>Do Until ReferrerId = "A001"</strong></span></p><p><span style="font-size: 15px"><strong></strong></span></p><p style="margin-left: 20px"><span style="font-size: 15px"><strong>ReferrerId = SELECT referrer_id FROM table WHERE user_id = UserId</p></strong></span></p><p style="margin-left: 20px"><span style="font-size: 15px"><strong>Add UserId to ReferrerList</p></strong></span></p><p style="margin-left: 20px"><span style="font-size: 15px"><strong>UserId = ReferrerId</p></strong></span></p><p style="margin-left: 20px"><span style="font-size: 15px"><strong></p><p>Loop</strong></span></p><p><span style="font-size: 15px"></span></p><p><span style="font-size: 15px">සමහරවිට මේක SQL Procedure එකක් ලියන පුළුවන් උනානම් ලොකු රෙකොර්ඩ්ස් ගානක් හොයද්දි කාර්යක්ෂමතාව වැඩිවෙයි. </span></p><p><span style="font-size: 15px"> </span></p></blockquote><p></p>
[QUOTE="thinking_guy, post: 20774319, member: 351690"] [SIZE="4"]උඹ දීල තියෙන රූල්ස් වල විදියට, බොසා (A001) තමයි කිසිම reference එකක් නැති චේන් එකේ අන්තිමට ඉන්න එකා. ඒ කියන්නෙ මොන user_id එක ගත්තත් අන්තිමට referrer ලව හොයාගෙන හොයාගෙන යද්දී ලූප් එක ඉවර වෙන්න ඕන A001 ගෙන්. උඹ කෝඩින් කරන භාෂාව මොකක්ද දන්නෙ නෑ. එත් Pseudo code එකක් නම් පල්ලෙහා තියෙන විදියට හදන්න පුළුවන්. [B]UserId As String ReferrerId As String ReferrerList As List Input a value to UserId to search for. Do Until ReferrerId = "A001" [INDENT]ReferrerId = SELECT referrer_id FROM table WHERE user_id = UserId Add UserId to ReferrerList UserId = ReferrerId [/INDENT] Loop[/B] සමහරවිට මේක SQL Procedure එකක් ලියන පුළුවන් උනානම් ලොකු රෙකොර්ඩ්ස් ගානක් හොයද්දි කාර්යක්ෂමතාව වැඩිවෙයි. [/SIZE] [/QUOTE]
Insert quotes…
Verification
Hath warak paha keeyada? (hatha wadikireema paha)
Post reply
Top
Bottom