{"id":810,"date":"2019-08-02T15:14:13","date_gmt":"2019-08-02T08:14:13","guid":{"rendered":"http:\/\/www.oopsbox.com\/?p=810"},"modified":"2019-08-02T15:23:08","modified_gmt":"2019-08-02T08:23:08","slug":"mysql-%e0%b8%a7%e0%b9%88%e0%b8%b2%e0%b8%94%e0%b9%89%e0%b8%a7%e0%b8%a2%e0%b8%a5%e0%b8%b3%e0%b8%94%e0%b8%b1%e0%b8%9a%e0%b9%81%e0%b8%a5%e0%b8%b0%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%88%e0%b8%b1%e0%b8%94","status":"publish","type":"post","link":"https:\/\/www.oopsbox.com\/?p=810","title":{"rendered":"MySQL \u0e27\u0e48\u0e32\u0e14\u0e49\u0e27\u0e22\u0e25\u0e33\u0e14\u0e31\u0e1a\u0e41\u0e25\u0e30\u0e01\u0e32\u0e23\u0e08\u0e31\u0e14\u0e2d\u0e31\u0e19\u0e14\u0e31\u0e1a\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25"},"content":{"rendered":"<p>\u0e40\u0e14\u0e34\u0e21\u0e17\u0e35\u0e41\u0e25\u0e49\u0e27 MySQL \u0e44\u0e21\u0e48\u0e21\u0e35\u0e1f\u0e31\u0e07\u0e01\u0e4c\u0e0a\u0e31\u0e48\u0e19 (Row Number) \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e40\u0e23\u0e35\u0e22\u0e01\u0e25\u0e33\u0e14\u0e31\u0e1a\u0e17\u0e35\u0e48 (1, 2, 3 &#8230;n) \u0e02\u0e2d\u0e07\u0e41\u0e16\u0e27\/\u0e40\u0e23\u0e47\u0e04\u0e04\u0e2d\u0e23\u0e4c\u0e14\u0e43\u0e19\u0e10\u0e32\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e40\u0e2b\u0e21\u0e37\u0e2d\u0e19\u0e14\u0e31\u0e48\u0e07\u0e40\u0e0a\u0e48\u0e19\u0e40\u0e08\u0e49\u0e32\u0e2d\u0e37\u0e48\u0e19 \u0e46 \u0e40\u0e1e\u0e23\u0e32\u0e30\u0e09\u0e19\u0e31\u0e49\u0e19\u0e40\u0e2b\u0e25\u0e48\u0e32\u0e19\u0e31\u0e01\u0e23\u0e1a\u0e2a\u0e48\u0e27\u0e19\u0e43\u0e2b\u0e0d\u0e48\u0e01\u0e47\u0e21\u0e31\u0e01\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e1f\u0e31\u0e07\u0e01\u0e4c\u0e0a\u0e31\u0e48\u0e19\u0e43\u0e2a\u0e48\u0e25\u0e33\u0e14\u0e31\u0e1a\u0e17\u0e35\u0e48\u0e41\u0e16\u0e27\u0e40\u0e2d\u0e07<\/p>\n<p>\u0e2a\u0e21\u0e21\u0e38\u0e15\u0e34\u0e40\u0e23\u0e32\u0e21\u0e35\u0e0a\u0e38\u0e14\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e19\u0e36\u0e07\u0e41\u0e2a\u0e14\u0e07\u0e04\u0e30\u0e41\u0e19\u0e19\u0e02\u0e2d\u0e07\u0e41\u0e15\u0e48\u0e25\u0e30\u0e2d\u0e33\u0e40\u0e20\u0e2d (\u0e40\u0e2d\u0e4a\u0e30 !! \u0e04\u0e38\u0e49\u0e19 \u0e46 ) \u0e15\u0e32\u0e21\u0e19\u0e35\u0e49<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">CREATE TABLE IF NOT EXISTS `rstanding` (\r\n  `id` int(6) unsigned NOT NULL,\r\n  `name` varchar(20) NOT NULL,\r\n  `score` decimal(10,2) NOT NULL,\r\n  PRIMARY KEY (`id`)\r\n) DEFAULT CHARSET=utf8;\r\nINSERT INTO `rstanding` (`id`, `name`, `score`) VALUES\r\n  ('1', 'A', 98.52),\r\n  ('2', 'B', 97.24),\r\n  ('3', 'C', 96.33),\r\n  ('4', 'E', 96.33),  \r\n  ('5', 'F', 95.02),\r\n  ('6', 'G', 94.88),\r\n  ('7', 'H', 94.88);<\/pre>\n<p>\u0e01\u0e32\u0e23\u0e43\u0e2a\u0e48\u0e25\u0e33\u0e14\u0e31\u0e1a\u0e17\u0e35\u0e48\u0e02\u0e2d\u0e07\u0e41\u0e16\u0e27\u0e01\u0e47\u0e08\u0e30\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e1f\u0e31\u0e07\u0e01\u0e4c\u0e0a\u0e31\u0e48\u0e19\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e19\u0e31\u0e1a\u0e08\u0e33\u0e19\u0e27\u0e19\u0e02\u0e2d\u0e07\u0e41\u0e16\u0e27\u0e44\u0e1b\u0e08\u0e19\u0e2a\u0e34\u0e49\u0e19\u0e2a\u0e38\u0e14\u0e0a\u0e38\u0e14\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"sql\">SELECT \r\n    @rownum := @rownum + 1 AS row_number,\r\n    t1.*\r\nFROM rstanding t1, \r\n(SELECT @rownum := 0) r<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-813\" src=\"https:\/\/www.oopsbox.com\/wp-content\/uploads\/Shot_20190802-002710.png\" alt=\"\" width=\"800\" height=\"339\" srcset=\"https:\/\/www.oopsbox.com\/wp-content\/uploads\/Shot_20190802-002710.png 800w, https:\/\/www.oopsbox.com\/wp-content\/uploads\/Shot_20190802-002710-300x127.png 300w, https:\/\/www.oopsbox.com\/wp-content\/uploads\/Shot_20190802-002710-768x325.png 768w, https:\/\/www.oopsbox.com\/wp-content\/uploads\/Shot_20190802-002710-700x297.png 700w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>\u0e08\u0e30\u0e40\u0e2b\u0e47\u0e19\u0e44\u0e14\u0e49\u0e27\u0e48\u0e32\u0e04\u0e2d\u0e25\u0e31\u0e21\u0e20\u0e4c row_number \u0e40\u0e1e\u0e34\u0e48\u0e21\u0e02\u0e36\u0e49\u0e19\u0e21\u0e32\u0e42\u0e14\u0e22\u0e40\u0e1b\u0e47\u0e19\u0e25\u0e33\u0e14\u0e31\u0e1a\u0e17\u0e35\u0e48\u0e41\u0e16\u0e27\/\u0e40\u0e23\u0e04\u0e04\u0e2d\u0e23\u0e4c\u0e14\u0e19\u0e31\u0e49\u0e19 \u0e46 \u0e43\u0e19\u0e17\u0e35\u0e48\u0e19\u0e35\u0e49\u0e40\u0e23\u0e32\u0e44\u0e21\u0e48\u0e44\u0e14\u0e49\u0e08\u0e31\u0e14\u0e40\u0e23\u0e35\u0e22\u0e07 (<em>ORDER BY Field [ASC\/DESC]<\/em>) \u0e0a\u0e38\u0e14\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e14\u0e49\u0e27\u0e22\u0e04\u0e2d\u0e25\u0e31\u0e21\u0e20\u0e4c\u0e43\u0e14 \u0e46<\/p>\n<p>\u0e15\u0e48\u0e2d\u0e40\u0e19\u0e37\u0e48\u0e2d\u0e07\u0e43\u0e19\u0e40\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e02\u0e2d\u0e07\u0e2d\u0e31\u0e19\u0e14\u0e31\u0e1a<\/p>\n<blockquote><p><b>\u0e2d\u0e31\u0e19\u0e14\u0e31\u0e1a<\/b> \u0e40\u0e1b\u0e47\u0e19\u0e0a\u0e37\u0e48\u0e2d\u0e02\u0e2d\u0e07\u0e15\u0e33\u0e41\u0e2b\u0e19\u0e48\u0e07 \u0e17\u0e35\u0e48\u0e21\u0e35\u0e04\u0e33\u0e1a\u0e2d\u0e01\u0e23\u0e30\u0e14\u0e31\u0e1a\u0e02\u0e2d\u0e07 \u0e02\u0e31\u0e49\u0e19,\u0e0a\u0e31\u0e49\u0e19 \u0e17\u0e35\u0e48\u0e1a\u0e48\u0e07\u0e1a\u0e2d\u0e01\u0e16\u0e36\u0e07\u0e04\u0e27\u0e32\u0e21\u0e15\u0e48\u0e32\u0e07\u0e23\u0e30\u0e14\u0e31\u0e1a \u0e0b\u0e36\u0e48\u0e07\u0e40\u0e1b\u0e47\u0e19\u0e1c\u0e25\u0e1e\u0e27\u0e07\u0e21\u0e32\u0e08\u0e32\u0e01\u0e1c\u0e25\u0e07\u0e32\u0e19\u0e17\u0e35\u0e48\u0e21\u0e35\u0e01\u0e32\u0e23\u0e1b\u0e23\u0e30\u0e01\u0e27\u0e14\u0e2b\u0e23\u0e37\u0e2d\u0e41\u0e02\u0e48\u0e07\u0e02\u0e31\u0e19<\/p><\/blockquote>\n<p>\u0e01\u0e32\u0e23\u0e43\u0e2a\u0e48\u0e25\u0e33\u0e14\u0e31\u0e1a\u0e17\u0e35\u0e48\u0e42\u0e14\u0e22\u0e01\u0e32\u0e23\u0e08\u0e31\u0e14\u0e40\u0e23\u0e35\u0e22\u0e07\u0e15\u0e32\u0e21\u0e04\u0e30\u0e41\u0e19\u0e19 (\u0e04\u0e2d\u0e25\u0e31\u0e21\u0e20\u0e4c score) \u0e08\u0e32\u0e01\u0e04\u0e30\u0e41\u0e19\u0e19\u0e2a\u0e39\u0e07\u0e2a\u0e38\u0e14\u0e44\u0e1b\u0e2b\u0e32\u0e19\u0e49\u0e2d\u0e22\u0e2a\u0e38\u0e14<\/p>\n<p><strong>\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e27\u0e34\u0e18\u0e35\u0e17\u0e35\u0e48 1<\/strong> \u0e43\u0e0a\u0e49\u0e1f\u0e31\u0e07\u0e01\u0e4c\u0e0a\u0e31\u0e48\u0e19\u0e40\u0e14\u0e34\u0e21\u0e41\u0e15\u0e48\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e40\u0e15\u0e34\u0e21\u0e14\u0e49\u0e27\u0e22\u0e01\u0e32\u0e23\u0e43\u0e2a\u0e48\u0e40\u0e07\u0e37\u0e48\u0e2d\u0e19\u0e44\u0e02\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e43\u0e2b\u0e49\u0e08\u0e31\u0e14\u0e25\u0e33\u0e14\u0e31\u0e1a\u0e44\u0e14\u0e49<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"sql\">SELECT \r\n    @rownum := @rownum + 1 AS row_number,\r\n    @ranknum := IF(t1.score &lt; @score, @ranknum + 1, @ranknum) AS row_ranking,    \r\n    t1.*,\r\n@score := t1.score AS dummy\r\nFROM rstanding t1 , (SELECT @score:=0, @rownum:=0, @ranknum :=1) r\r\nORDER BY t1.score DESC<\/pre>\n<p>\u0e1c\u0e25\u0e25\u0e31\u0e1e\u0e18\u0e4c\u0e01\u0e32\u0e23\u0e08\u0e31\u0e14\u0e40\u0e23\u0e35\u0e22\u0e07\u0e01\u0e47\u0e08\u0e30\u0e44\u0e14\u0e49\u0e15\u0e32\u0e21\u0e19\u0e35\u0e49<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-815\" src=\"https:\/\/www.oopsbox.com\/wp-content\/uploads\/Shot_20190802-143515.png\" alt=\"\" width=\"772\" height=\"369\" srcset=\"https:\/\/www.oopsbox.com\/wp-content\/uploads\/Shot_20190802-143515.png 772w, https:\/\/www.oopsbox.com\/wp-content\/uploads\/Shot_20190802-143515-300x143.png 300w, https:\/\/www.oopsbox.com\/wp-content\/uploads\/Shot_20190802-143515-768x367.png 768w, https:\/\/www.oopsbox.com\/wp-content\/uploads\/Shot_20190802-143515-700x335.png 700w\" sizes=\"auto, (max-width: 772px) 100vw, 772px\" \/><\/p>\n<p>\u0e08\u0e32\u0e01\u0e1c\u0e25\u0e25\u0e31\u0e1e\u0e18\u0e4c\u0e17\u0e35\u0e48\u0e44\u0e14\u0e49\u0e43\u0e19\u0e27\u0e34\u0e18\u0e35\u0e17\u0e35\u0e48 1 \u0e40\u0e23\u0e32\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e01\u0e23\u0e2d\u0e07\u0e44\u0e14\u0e49\u0e27\u0e48\u0e32\u0e40\u0e23\u0e32\u0e2a\u0e19\u0e43\u0e08\u0e25\u0e33\u0e14\u0e31\u0e1a\u0e17\u0e35\u0e48\u0e44\u0e14\u0e49\u0e25\u0e33\u0e14\u0e31\u0e1a\u0e2d\u0e30\u0e44\u0e23\u0e1a\u0e49\u0e32\u0e07 \u0e40\u0e0a\u0e48\u0e19\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e17\u0e23\u0e32\u0e1a\u0e27\u0e48\u0e32\u0e04\u0e19\u0e17\u0e35\u0e48\u0e44\u0e14\u0e49\u0e25\u0e33\u0e14\u0e31\u0e1a\u0e17\u0e35\u0e48 3 \u0e21\u0e35\u0e43\u0e04\u0e23\u0e1a\u0e49\u0e32\u0e07\u0e01\u0e47\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e01\u0e23\u0e2d\u0e07\u0e44\u0e14\u0e49\u0e08\u0e32\u0e01\u0e04\u0e2d\u0e25\u0e31\u0e21\u0e20\u0e4c <code class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">WHERE row_ranking = ?<\/code><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"sql\">SELECT\r\n    t2.*\r\nFROM (\r\n  SELECT \r\n      @rownum := @rownum + 1 AS row_number,\r\n      @ranknum := IF(t1.score &lt; @score, \t\t\r\n      @ranknum + 1, @ranknum) AS row_ranking,    \r\n      t1.*,\r\n      @score := t1.score AS dummy\r\n  FROM rstanding t1 , (SELECT @score:=0, @rownum:=0, @ranknum :=1) r\r\n  ORDER BY t1.score DESC\r\n) t2 \r\nWHERE t2.row_ranking = 3<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-816\" src=\"https:\/\/www.oopsbox.com\/wp-content\/uploads\/Shot_20190802-144506.png\" alt=\"\" width=\"838\" height=\"148\" srcset=\"https:\/\/www.oopsbox.com\/wp-content\/uploads\/Shot_20190802-144506.png 838w, https:\/\/www.oopsbox.com\/wp-content\/uploads\/Shot_20190802-144506-300x53.png 300w, https:\/\/www.oopsbox.com\/wp-content\/uploads\/Shot_20190802-144506-768x136.png 768w, https:\/\/www.oopsbox.com\/wp-content\/uploads\/Shot_20190802-144506-700x124.png 700w\" sizes=\"auto, (max-width: 838px) 100vw, 838px\" \/><\/p>\n<p><strong>\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e27\u0e34\u0e18\u0e35\u0e17\u0e35\u0e48 2<\/strong> \u0e01\u0e23\u0e13\u0e35\u0e17\u0e35\u0e48\u0e2a\u0e19\u0e43\u0e08\u0e25\u0e33\u0e14\u0e31\u0e1a\u0e17\u0e35\u0e48\u0e19\u0e31\u0e49\u0e19 \u0e46 \u0e01\u0e47\u0e19\u0e31\u0e1a\u0e08\u0e33\u0e19\u0e27\u0e19 (\u0e41\u0e1a\u0e1a\u0e44\u0e21\u0e48\u0e0b\u0e49\u0e33) \u0e43\u0e19\u0e25\u0e33\u0e14\u0e31\u0e1a\u0e01\u0e48\u0e2d\u0e19\u0e2b\u0e19\u0e49\u0e32 \u0e40\u0e0a\u0e48\u0e19 \u0e2a\u0e19\u0e43\u0e08\u0e25\u0e33\u0e14\u0e31\u0e1a\u0e17\u0e35\u0e48 3 \u0e25\u0e33\u0e14\u0e31\u0e1a\u0e01\u0e48\u0e2d\u0e19\u0e2b\u0e19\u0e49\u0e32\u0e04\u0e37\u0e2d 2 \u0e25\u0e33\u0e14\u0e31\u0e1a<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"sql\">SELECT\r\n    t1.*\r\nFROM rstanding t1\r\nWHERE 2 = (SELECT COUNT(DISTINCT t2.score) FROM rstanding t2 WHERE t1.score &lt; t2.score)<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-817\" src=\"https:\/\/www.oopsbox.com\/wp-content\/uploads\/Shot_20190802-145101.png\" alt=\"\" width=\"819\" height=\"145\" srcset=\"https:\/\/www.oopsbox.com\/wp-content\/uploads\/Shot_20190802-145101.png 819w, https:\/\/www.oopsbox.com\/wp-content\/uploads\/Shot_20190802-145101-300x53.png 300w, https:\/\/www.oopsbox.com\/wp-content\/uploads\/Shot_20190802-145101-768x136.png 768w, https:\/\/www.oopsbox.com\/wp-content\/uploads\/Shot_20190802-145101-700x124.png 700w\" sizes=\"auto, (max-width: 819px) 100vw, 819px\" \/><\/p>\n<p><strong>\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e27\u0e34\u0e18\u0e35\u0e17\u0e35\u0e48 3<\/strong> \u0e2b\u0e32\u0e08\u0e33\u0e19\u0e27\u0e19 LIMIT <code class=\"EnlighterJSRAW\" data-enlighter-language=\"sql\">LIMIT offset, count;<\/code><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"sql\">SELECT\r\n    t1.*\r\nFROM rstanding t1\r\nWHERE t1.score = (SELECT t2.score FROM rstanding t2 ORDER BY t2.score DESC LIMIT 3,1);<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-817\" src=\"https:\/\/www.oopsbox.com\/wp-content\/uploads\/Shot_20190802-145101.png\" alt=\"\" width=\"819\" height=\"145\" srcset=\"https:\/\/www.oopsbox.com\/wp-content\/uploads\/Shot_20190802-145101.png 819w, https:\/\/www.oopsbox.com\/wp-content\/uploads\/Shot_20190802-145101-300x53.png 300w, https:\/\/www.oopsbox.com\/wp-content\/uploads\/Shot_20190802-145101-768x136.png 768w, https:\/\/www.oopsbox.com\/wp-content\/uploads\/Shot_20190802-145101-700x124.png 700w\" sizes=\"auto, (max-width: 819px) 100vw, 819px\" \/><\/p>\n<p><strong>\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e27\u0e34\u0e18\u0e35\u0e17\u0e35\u0e48 4<\/strong> \u0e17\u0e38\u0e01\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e07\u0e48\u0e32\u0e22\u0e02\u0e36\u0e49\u0e19 MySQL \u0e40\u0e2b\u0e47\u0e19\u0e04\u0e07\u0e40\u0e2b\u0e47\u0e19\u0e27\u0e48\u0e32\u0e08\u0e30\u0e17\u0e33\u0e43\u0e2b\u0e49\u0e22\u0e38\u0e48\u0e07\u0e22\u0e32\u0e01\u0e44\u0e1b\u0e43\u0e22\u0e40\u0e25\u0e48\u0e32 \u0e40\u0e23\u0e32\u0e21\u0e35\u0e1f\u0e31\u0e07\u0e01\u0e4c\u0e0a\u0e31\u0e48\u0e19\u0e43\u0e2b\u0e49\u0e43\u0e0a\u0e49\u0e19\u0e30 \u0e41\u0e15\u0e48\u0e0a\u0e49\u0e32\u0e01\u0e48\u0e2d\u0e19 \u0e21\u0e31\u0e19\u0e21\u0e35\u0e43\u0e19\u0e40\u0e27\u0e2d\u0e23\u0e4c\u0e0a\u0e31\u0e48\u0e19 8 \u0e40\u0e1b\u0e47\u0e19\u0e15\u0e49\u0e19\u0e44\u0e1b\u0e19\u0e30\u0e08\u0e4a\u0e30 \u0e40\u0e27\u0e2d\u0e23\u0e4c\u0e0a\u0e31\u0e48\u0e19\u0e01\u0e48\u0e2d\u0e19\u0e2b\u0e19\u0e49\u0e32\u0e01\u0e47\u0e2d\u0e14<\/p>\n<blockquote><p>ROW_NUMBER() Number of current row within its partition<br \/>\nDENSE_RANK() Rank of current row within its partition, without gaps<br \/>\nRANK() Rank of current row within its partition, with gaps<\/p><\/blockquote>\n<p>\u0e14\u0e39\u0e27\u0e34\u0e18\u0e35\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e01\u0e31\u0e19\u0e40\u0e25\u0e22<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"sql\">WITH ranked_score AS (\r\n  SELECT \r\n      ROW_NUMBER() OVER (ORDER BY score DESC) rownum,\r\n      RANK() OVER (ORDER BY score DESC) row_ranking,\r\n      DENSE_RANK() OVER (ORDER BY score DESC) drow_ranking,\r\n      id,\r\n      name,\r\n      score\r\n  FROM rstanding\r\n)\r\nSELECT * FROM ranked_score; -- WHERE drow_ranking = 3;<\/pre>\n<p>\u0e1c\u0e25\u0e25\u0e31\u0e1e\u0e18\u0e4c\u0e01\u0e23\u0e13\u0e35\u0e17\u0e35\u0e48\u0e40\u0e23\u0e32\u0e44\u0e21\u0e48\u0e01\u0e23\u0e2d\u0e07\u0e43\u0e14 \u0e46 \u0e01\u0e47\u0e08\u0e30\u0e41\u0e2a\u0e14\u0e07\u0e1c\u0e25\u0e14\u0e31\u0e07\u0e19\u0e35\u0e49<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-818\" src=\"https:\/\/www.oopsbox.com\/wp-content\/uploads\/Screenshot-20190802151043-1024x367-1024x367.png\" alt=\"\" width=\"700\" height=\"251\" srcset=\"https:\/\/www.oopsbox.com\/wp-content\/uploads\/Screenshot-20190802151043-1024x367.png 1024w, https:\/\/www.oopsbox.com\/wp-content\/uploads\/Screenshot-20190802151043-1024x367-300x108.png 300w, https:\/\/www.oopsbox.com\/wp-content\/uploads\/Screenshot-20190802151043-1024x367-768x275.png 768w, https:\/\/www.oopsbox.com\/wp-content\/uploads\/Screenshot-20190802151043-1024x367-700x251.png 700w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/p>\n<p>\u0e08\u0e1a\u0e1b\u0e34\u0e4a\u0e07 ^_^<br \/>\n<em>#\u0e41\u0e14\u0e48\u0e15\u0e31\u0e27\u0e2a\u0e33\u0e23\u0e2d\u0e07\u0e2d\u0e31\u0e19\u0e14\u0e31\u0e1a\u0e2b\u0e19\u0e36\u0e48\u0e07<br \/>\n<\/em><\/p>\n<p>\u0e1b.\u0e25.<\/p>\n<ul>\n<li>\u0e44\u0e1b\u0e25\u0e2d\u0e07\u0e40\u0e25\u0e48\u0e19\u0e01\u0e31\u0e19\u0e44\u0e14\u0e49\u0e17\u0e35\u0e48\u00a0 <a href=\"https:\/\/www.db-fiddle.com\/f\/j4JjnrxbgTVePxu4XpRQuU\/0\">https:\/\/www.db-fiddle.com\/f\/j4JjnrxbgTVePxu4XpRQuU\/0<\/a><\/li>\n<li>\u0e41\u0e1b\u0e30\u0e40\u0e1e\u0e25\u0e07\u0e14\u0e31\u0e01 &#8220;\u0e17\u0e35\u0e48\u0e2b\u0e19\u0e36\u0e48\u0e07\u0e44\u0e21\u0e48\u0e2b\u0e27\u0e32\u0e22\u0e22\u0e22\u0e22\u0e22\u0e22\u0e22\u0e22\u0e22\u0e22\u0e22&#8221;<\/li>\n<\/ul>\n<p><iframe loading=\"lazy\" title=\"\u0e17\u0e35\u0e48\u0e2b\u0e19\u0e36\u0e48\u0e07\u0e44\u0e21\u0e48\u0e44\u0e2b\u0e27 : \u0e44\u0e2d..\u0e19\u0e49\u0e33 [Official MV]\" width=\"640\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/TnALxy7-EyU?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n<p>&nbsp;<\/p>\n<div id=\"s-share-buttons\" class=\"\"><div class=\"s-single-share\">\n\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"fb-share-button\" data-href=\"https:\/\/www.oopsbox.com\/?p=810\" data-type=\"button_count\"><\/div><\/div><div class=\"s-single-share\"><a href=\"https:\/\/twitter.com\/share\" class=\"twitter-share-button\"><\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t<\/div><div class=\"s-single-share\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"g-plusone\" data-size=\"medium\"><\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div><div class=\"s-single-share\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"\/\/www.pinterest.com\/pin\/create\/button\/\" data-pin-do=\"buttonBookmark\"  data-pin-color=\"red\"><img decoding=\"async\" src=\"\/\/assets.pinterest.com\/images\/pidgets\/pinit_fg_en_rect_red_20.png\" \/><\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<script type=\"text\/javascript\" async defer src=\"\/\/assets.pinterest.com\/js\/pinit.js\"><\/script>\n\t\t\t\t\t\t\t\t\t\t\t\t<\/div><div class=\"s-single-share\">\n\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"mailto:?Subject=MySQL%20\u0e27\u0e48\u0e32\u0e14\u0e49\u0e27\u0e22\u0e25\u0e33\u0e14\u0e31\u0e1a\u0e41\u0e25\u0e30\u0e01\u0e32\u0e23\u0e08\u0e31\u0e14\u0e2d\u0e31\u0e19\u0e14\u0e31\u0e1a\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25&Body=Here%20is%20the%20link%20to%20the%20article:%20https:\/\/www.oopsbox.com\/?p=810\" title=\"Email\" class=\"s3-email\"><img decoding=\"async\" src=\"https:\/\/www.oopsbox.com\/wp-content\/plugins\/simple-social-share\/includes\/..\/images\/share-email.png\"><\/a>\n\t\t\t\t\t\t\t\t\t\t\t<\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>\u0e40\u0e14\u0e34\u0e21\u0e17\u0e35\u0e41\u0e25\u0e49\u0e27 MySQL \u0e44\u0e21\u0e48\u0e21\u0e35\u0e1f\u0e31\u0e07\u0e01\u0e4c\u0e0a\u0e31\u0e48\u0e19 (Row Number) \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e40\u0e23\u0e35\u0e22\u0e01\u0e25\u0e33\u0e14\u0e31\u0e1a\u0e17\u0e35\u0e48 (1, 2, 3 &#8230;n) \u0e02\u0e2d\u0e07\u0e41\u0e16\u0e27\/\u0e40\u0e23\u0e47\u0e04\u0e04\u0e2d\u0e23\u0e4c\u0e14\u0e43\u0e19\u0e10\u0e32\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e40\u0e2b\u0e21\u0e37\u0e2d\u0e19\u0e14\u0e31\u0e48\u0e07\u0e40\u0e0a\u0e48\u0e19\u0e40\u0e08\u0e49\u0e32\u0e2d\u0e37\u0e48\u0e19 \u0e46 \u0e40\u0e1e\u0e23\u0e32\u0e30\u0e09\u0e19\u0e31\u0e49\u0e19\u0e40\u0e2b\u0e25\u0e48\u0e32\u0e19\u0e31\u0e01\u0e23\u0e1a\u0e2a\u0e48\u0e27\u0e19\u0e43\u0e2b\u0e0d\u0e48\u0e01\u0e47\u0e21\u0e31\u0e01\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e1f\u0e31\u0e07\u0e01\u0e4c\u0e0a\u0e31\u0e48\u0e19\u0e43\u0e2a\u0e48\u0e25\u0e33\u0e14\u0e31\u0e1a\u0e17\u0e35\u0e48\u0e41\u0e16\u0e27\u0e40\u0e2d\u0e07 \u0e2a\u0e21\u0e21\u0e38\u0e15\u0e34\u0e40\u0e23\u0e32\u0e21\u0e35\u0e0a\u0e38\u0e14\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e19\u0e36\u0e07\u0e41\u0e2a\u0e14\u0e07\u0e04\u0e30\u0e41\u0e19\u0e19\u0e02\u0e2d\u0e07\u0e41\u0e15\u0e48\u0e25\u0e30\u0e2d\u0e33\u0e40\u0e20\u0e2d (\u0e40\u0e2d\u0e4a\u0e30 !! \u0e04\u0e38\u0e49\u0e19 \u0e46 ) \u0e15\u0e32\u0e21\u0e19\u0e35\u0e49 CREATE TABLE IF NOT EXISTS `rstanding` ( `id` int(6) unsigned NOT NULL, `name` varchar(20) NOT NULL, `score` decimal(10,2) NOT NULL, PRIMARY KEY (`id`) ) DEFAULT CHARSET=utf8; INSERT INTO `rstanding` (`id`, `name`, `score`) VALUES (&#8216;1&#8217;, &#8216;A&#8217;, &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.oopsbox.com\/?p=810\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;MySQL \u0e27\u0e48\u0e32\u0e14\u0e49\u0e27\u0e22\u0e25\u0e33\u0e14\u0e31\u0e1a\u0e41\u0e25\u0e30\u0e01\u0e32\u0e23\u0e08\u0e31\u0e14\u0e2d\u0e31\u0e19\u0e14\u0e31\u0e1a\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":811,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[5],"tags":[12,101,103,102],"class_list":["post-810","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-mysql","tag-rank","tag-ranking","tag-rownumber","entry"],"views":9882,"_links":{"self":[{"href":"https:\/\/www.oopsbox.com\/index.php?rest_route=\/wp\/v2\/posts\/810","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.oopsbox.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.oopsbox.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.oopsbox.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.oopsbox.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=810"}],"version-history":[{"count":8,"href":"https:\/\/www.oopsbox.com\/index.php?rest_route=\/wp\/v2\/posts\/810\/revisions"}],"predecessor-version":[{"id":824,"href":"https:\/\/www.oopsbox.com\/index.php?rest_route=\/wp\/v2\/posts\/810\/revisions\/824"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.oopsbox.com\/index.php?rest_route=\/wp\/v2\/media\/811"}],"wp:attachment":[{"href":"https:\/\/www.oopsbox.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=810"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.oopsbox.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=810"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.oopsbox.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=810"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}