Showing posts with label MariaDB. Show all posts
Showing posts with label MariaDB. Show all posts

Friday, August 1, 2014

As වල ප්‍රයෝජන

As Keyword එක අපිට ඕන වෙන්නෙ Mysql වල තියන alias (an alternate name) හැකියාව පාවිච්චිකරන්න.

 උදා:-

 1. දිග table,column name කෙටි කරගන්න.



2. එකම table එක නැවත නැවත join  වලට ගන්න.(Querying a Tree with Adjacency List)

idzone z_name idzone_parent zone_cat
1 Srilanka 111
2 Galle 1 112
3 Karapitiya 2 113




As නොතිබුනා නම් ඒක ලියන්න වෙන්නෙ මෙහෙමයි.