Skip to content

Instantly share code, notes, and snippets.

@songyunlu
Last active December 14, 2015 10:09
Show Gist options
  • Save songyunlu/5069943 to your computer and use it in GitHub Desktop.
Save songyunlu/5069943 to your computer and use it in GitHub Desktop.
/* 欄位定義:`remark` varchar(50) NOT NULL */
/* 執行時間:0.14 秒 */
SELECT `id`, `gift_code` FROM gift WHERE `deal_id` = 640 AND remark = 115127;
/* 執行時間:0.005 秒 */
SELECT `id`, `gift_code` FROM gift WHERE `deal_id` = 640 AND remark = '15127';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment