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
RHCSA, RHCE, AWS, Docker, Kubernetes Training
Sanjeewani95
Updated:
Tuesday at 10:28 AM
🛡️ Kaspersky Antivirus – 1 Year / 1 Device | Rs. 2,300 | Only 9 Left
KSPathirana
Updated:
Monday at 2:42 PM
Ad icon
Professional CCTV Installation Service
Techguy231
Updated:
Sep 6, 2026
Ad icon
I'll research & write an article - Rs. 2000 onwards
Blogerwiki
Updated:
Sep 3, 2026
House Plan
lenura
Updated:
Sep 2, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
Education
ElaKiri Programmer's Club
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="MihiCherub" data-source="post: 18585376" data-attributes="member: 238676"><p><span style="font-size: 12px">#MYSQL Help එකක් ඕනෙ මචන්ලා.</span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px">Item_id එක table එකේ තියෙන්නෙ එක්තරා format එකකින්. </span></p><p><span style="font-size: 12px"></span></p><ol> <li data-xf-list-type="ol"><span style="font-size: 12px">0001-AA01-ABC</span></li> <li data-xf-list-type="ol"><span style="font-size: 12px">0002-AA02</span></li> <li data-xf-list-type="ol"><span style="font-size: 12px">0003</span></li> <li data-xf-list-type="ol"><span style="font-size: 12px">0004-XX-...XX-AA03</span></li> </ol><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px">ඒ කියන්නෙ user කැමති item_id එකක් ගහනව. ඒ item_id එකට '-' තියෙන්නත් පුලුවන්. ඒත් පස්සෙ item එක save වෙන්න කලින් ඒ item_id එකට තව කොටස් දෙකක් එකතු වෙනව.</span></p><p><span style="font-size: 12px">හැබැයි හැම තිස්සෙම කොටස් එකතු වෙන්නෙ නෑ. අවස්තා තුනක් යටතේ තමා ඒ කොටස් එකතු වෙන්නෙ. ඒ මෙහෙමයි.</span></p><p><span style="font-size: 12px"></span></p><ol> <li data-xf-list-type="ol"><span style="font-size: 12px">AA01-ABC</span></li> <li data-xf-list-type="ol"><span style="font-size: 12px">AA02</span></li> <li data-xf-list-type="ol"><span style="font-size: 12px">(මුකුත් නෑ)</span></li> </ol><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px">දැන් පැහැදිලි ඇති item_id එකට නිශ්චිත length එකක් නෑ. user කැමති එකක් දෙන්න පුලුවන් නිසා. නමුත් program එකෙන් එකතු වෙන අවස්තා තුනෙන් එකතු වෙන්න උඩ පෙන්නපු format එකට විතරමයි.</span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px">1. මට ඕනෙ '-' ගැන බලන්නෙ නැතුව like query එකකින් items ගන්න.</span></p><p><span style="font-size: 12px">0001AA ගැහුවොත් search වෙන්න ඕනෙ උඩ දීපු item code අනුව,</span></p><p> <span style="font-size: 12px"></span></p><p><span style="font-size: 12px"></span></p><ul> <li data-xf-list-type="ul"><span style="font-size: 12px">0001-AA01-ABC</span></li> <li data-xf-list-type="ul"><span style="font-size: 12px">0002-AA02</span></li> </ul><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px">2.program එකෙන් එකතු වෙන අමතර කොටස ඉවත් කරල GROUP කරගන්න ඕනෙ.</span></p><p></p><p><span style="font-size: 12px">පුලුවන් කෙනෙක් කියල දෙන්නකෝ..</span> <span style="font-size: 12px">10+</span> <img src="/styles/default/xenforo/smilies/default/yes.gif" class="smilie" loading="lazy" alt=":yes:" title="Yes :yes:" data-shortname=":yes:" /></p></blockquote><p></p>
[QUOTE="MihiCherub, post: 18585376, member: 238676"] [SIZE=3]#MYSQL Help එකක් ඕනෙ මචන්ලා. Item_id එක table එකේ තියෙන්නෙ එක්තරා format එකකින්. [/SIZE] [LIST=1] [*][SIZE=3]0001-AA01-ABC[/SIZE] [*][SIZE=3]0002-AA02[/SIZE] [*][SIZE=3]0003[/SIZE] [*][SIZE=3]0004-XX-...XX-AA03[/SIZE] [/LIST] [SIZE=3] ඒ කියන්නෙ user කැමති item_id එකක් ගහනව. ඒ item_id එකට '-' තියෙන්නත් පුලුවන්. ඒත් පස්සෙ item එක save වෙන්න කලින් ඒ item_id එකට තව කොටස් දෙකක් එකතු වෙනව. හැබැයි හැම තිස්සෙම කොටස් එකතු වෙන්නෙ නෑ. අවස්තා තුනක් යටතේ තමා ඒ කොටස් එකතු වෙන්නෙ. ඒ මෙහෙමයි. [/SIZE] [LIST=1] [*][SIZE=3]AA01-ABC[/SIZE] [*][SIZE=3]AA02[/SIZE] [*][SIZE=3](මුකුත් නෑ)[/SIZE] [/LIST] [SIZE=3] දැන් පැහැදිලි ඇති item_id එකට නිශ්චිත length එකක් නෑ. user කැමති එකක් දෙන්න පුලුවන් නිසා. නමුත් program එකෙන් එකතු වෙන අවස්තා තුනෙන් එකතු වෙන්න උඩ පෙන්නපු format එකට විතරමයි. 1. මට ඕනෙ '-' ගැන බලන්නෙ නැතුව like query එකකින් items ගන්න. 0001AA ගැහුවොත් search වෙන්න ඕනෙ උඩ දීපු item code අනුව, [/SIZE] [LIST] [*][SIZE=3]0001-AA01-ABC[/SIZE] [*][SIZE=3]0002-AA02[/SIZE] [/LIST] [SIZE=3] 2.program එකෙන් එකතු වෙන අමතර කොටස ඉවත් කරල GROUP කරගන්න ඕනෙ.[/SIZE] [SIZE=3]පුලුවන් කෙනෙක් කියල දෙන්නකෝ..[/SIZE] [SIZE=3]10+[/SIZE] :yes: [/QUOTE]
Insert quotes…
Verification
Hata thunen beduwama keeyada? (60 bedeema thuna)
Post reply
Top
Bottom