Advertisement
kotvalera83

mysql view myadmin

Nov 16th, 2013
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.32 KB | None | 0 0
  1. DROP TABLE IF EXISTS `v_faq`;
  2. CREATE VIEW `v_faq` AS select `faq_rubrics`.`rubric_id` AS `rubric_id`,`faq_rubrics`.`name` AS `name`,`faq`.`id` AS `id`,`faq`.`ask` AS `ask`,`faq`.`answer` AS `answer` from (`faq_rubrics` left join `faq` on((`faq`.`rubric_id` = `faq_rubrics`.`rubric_id`))) where (`faq`.`rubric_id` is not null);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement