Quantcast
Channel: Toad for MySQL
Viewing all articles
Browse latest Browse all 1315

Forum Post: RE: SQL Script formatting

$
0
0
Sorry for the late reply, unfortunately this went unnoticed. The latest formatter (with default settings) outputs as follows: CREATE VIEW `database`.`table_v` AS SELECT `field`.`id` AS `id`, `field`.`user_id` AS `user_id`, `ua`.`display_name` AS `display_name`, `field`.`user_type_id` AS `user_type_id`, `uta`.`name` AS `user_type`, `field`.`source_id` AS `source_id`, `tst`.`name` AS `source`, `field`.`author_id` AS `author_id`, (CASE WHEN (`field`.`user_type_id` = 1) THEN `ua`.`display_name` WHEN (`field`.`user_type_id` = 2) THEN `taa`.`name` ELSE `ua`.`display_name` END) AS 'author' Thanks, Andre

Viewing all articles
Browse latest Browse all 1315

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>