Created
December 17, 2017 14:39
-
-
Save alicilin/e442233d85c3012fd950f667b5015efc to your computer and use it in GitHub Desktop.
mysql recursive select
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| select @pv:=category_id as category_id, name, parent from category | |
| join | |
| (select @pv:=19)tmp | |
| where parent=@pv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment