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
Pure VPN - Up to 27 Months
vgp
Updated:
Friday at 8:10 AM
එක පැකේජ් එකයි මාසෙටම Unlimited Internet. තාමත් DATA CARD දාන්න සල්ලි වියදම් කරනවද? අඩුම මිලට අපෙන්.
sayuru bandara
Updated:
Jun 2, 2026
Ad icon
ඉන්ටර්නෙට් එකෙන් හරියටම සල්ලි හොයන්න සහ Success වෙන්න කැමතිද? 🚀 (E-Money & Success Stories)
siri sumana
Updated:
May 30, 2026
Gemini AI PRO 18 months Offer
Hawaka
Updated:
May 27, 2026
Ad icon
koko account
DasunEranga
Updated:
May 27, 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
Hathara warak wissa keeyada? (Hathara wadi karanna 20)
Post reply
Top
Bottom