3.57 ms (19.69%)
|
1 |
SELECT
c.TABLE_NAME,
c.COLUMN_NAME AS field,
IF(
c.DATA_TYPE = 'longtext'
AND EXISTS(
SELECT * FROM information_schema.CHECK_CONSTRAINTS i_c
WHERE i_c.CONSTRAINT_SCHEMA = 'nuip1737_tussor_dev'
AND i_c.TABLE_NAME = c.TABLE_NAME
AND i_c.CHECK_CLAUSE = CONCAT(
'json_valid(`',
c.COLUMN_NAME,
'`)'
)
),
'json',
c.DATA_TYPE
) AS type,
c.COLUMN_TYPE,
c.CHARACTER_MAXIMUM_LENGTH,
c.CHARACTER_OCTET_LENGTH,
c.NUMERIC_PRECISION,
c.NUMERIC_SCALE,
c.IS_NULLABLE AS `null`,
c.COLUMN_KEY AS `key`,
c.COLUMN_DEFAULT AS `default`,
c.EXTRA,
c.COLUMN_COMMENT AS comment,
c.CHARACTER_SET_NAME AS characterset,
c.COLLATION_NAME AS collation
FROM information_schema.COLUMNS c
INNER JOIN information_schema.TABLES t
ON t.TABLE_NAME = c.TABLE_NAME
WHERE c.TABLE_SCHEMA = ? AND t.TABLE_SCHEMA = ? AND t.TABLE_NAME = ?
AND t.TABLE_TYPE = 'BASE TABLE'
ORDER BY c.TABLE_NAME,
c.ORDINAL_POSITION
Parameters: [
"nuip1737_tussor_dev"
"nuip1737_tussor_dev"
"doctrine_migration_versions"
]
SELECT
c.TABLE_NAME,
c.COLUMN_NAME AS field,
IF(
c.DATA_TYPE = 'longtext'
AND EXISTS(
SELECT * FROM information_schema.CHECK_CONSTRAINTS i_c
WHERE i_c.CONSTRAINT_SCHEMA = 'nuip1737_tussor_dev'
AND i_c.TABLE_NAME = c.TABLE_NAME
AND i_c.CHECK_CLAUSE = CONCAT(
'json_valid(`',
c.COLUMN_NAME,
'`)'
)
),
'json',
c.DATA_TYPE
) AS type,
c.COLUMN_TYPE,
c.CHARACTER_MAXIMUM_LENGTH,
c.CHARACTER_OCTET_LENGTH,
c.NUMERIC_PRECISION,
c.NUMERIC_SCALE,
c.IS_NULLABLE AS `null`,
c.COLUMN_KEY AS `key`,
c.COLUMN_DEFAULT AS `default`,
c.EXTRA,
c.COLUMN_COMMENT AS comment,
c.CHARACTER_SET_NAME AS characterset,
c.COLLATION_NAME AS collation
FROM information_schema.COLUMNS c
INNER JOIN information_schema.TABLES t
ON t.TABLE_NAME = c.TABLE_NAME
WHERE c.TABLE_SCHEMA = 'nuip1737_tussor_dev' AND t.TABLE_SCHEMA = 'nuip1737_tussor_dev' AND t.TABLE_NAME = 'doctrine_migration_versions'
AND t.TABLE_TYPE = 'BASE TABLE'
ORDER BY c.TABLE_NAME,
c.ORDINAL_POSITION;
|
1.20 ms (6.63%)
|
1 |
SELECT t0.id AS id_1, t0.name AS name_2, t0.slug AS slug_3, t0.ref AS ref_4, t0.alt AS alt_5, t0.position AS position_6, t0.price AS price_7, t0.promo AS promo_8, t0.image AS image_9, t0.stock AS stock_10, t0.create_at AS create_at_11, t0.update_at AS update_at_12, t0.active AS active_13, t0.default_name AS default_name_14, t0.long_description AS long_description_15, t0.short_description AS short_description_16, t0.care AS care_17, t0.category_id AS category_id_18, t19.id AS id_20, t19.name AS name_21, t19.slug AS slug_22, t19.image AS image_23, t19.alt AS alt_24, t19.min_price AS min_price_25, t19.update_at AS update_at_26, t19.title_page AS title_page_27, t19.sub_title_page AS sub_title_page_28, t19.cite_page AS cite_page_29, t19.main_image AS main_image_30, t19.main_alt AS main_alt_31, t19.second_image AS second_image_32, t19.second_alt AS second_alt_33, t19.third_image AS third_image_34, t19.third_alt AS third_alt_35, t19.fourth_image AS fourth_image_36, t19.fourth_alt AS fourth_alt_37, t19.nb_display AS nb_display_38, t19.sort AS sort_39, t19.show_sub_categories AS show_sub_categories_40, t19.description AS description_41, t19.meta_title AS meta_title_42, t19.parent_id AS parent_id_43, t0.field_id AS field_id_44, t0.product_option_id AS product_option_id_45 FROM product t0 LEFT JOIN category t19 ON t0.category_id = t19.id WHERE t0.id = ?
SELECT
t0.id AS id_1,
t0.name AS name_2,
t0.slug AS slug_3,
t0.ref AS ref_4,
t0.alt AS alt_5,
t0.position AS position_6,
t0.price AS price_7,
t0.promo AS promo_8,
t0.image AS image_9,
t0.stock AS stock_10,
t0.create_at AS create_at_11,
t0.update_at AS update_at_12,
t0.active AS active_13,
t0.default_name AS default_name_14,
t0.long_description AS long_description_15,
t0.short_description AS short_description_16,
t0.care AS care_17,
t0.category_id AS category_id_18,
t19.id AS id_20,
t19.name AS name_21,
t19.slug AS slug_22,
t19.image AS image_23,
t19.alt AS alt_24,
t19.min_price AS min_price_25,
t19.update_at AS update_at_26,
t19.title_page AS title_page_27,
t19.sub_title_page AS sub_title_page_28,
t19.cite_page AS cite_page_29,
t19.main_image AS main_image_30,
t19.main_alt AS main_alt_31,
t19.second_image AS second_image_32,
t19.second_alt AS second_alt_33,
t19.third_image AS third_image_34,
t19.third_alt AS third_alt_35,
t19.fourth_image AS fourth_image_36,
t19.fourth_alt AS fourth_alt_37,
t19.nb_display AS nb_display_38,
t19.sort AS sort_39,
t19.show_sub_categories AS show_sub_categories_40,
t19.description AS description_41,
t19.meta_title AS meta_title_42,
t19.parent_id AS parent_id_43,
t0.field_id AS field_id_44,
t0.product_option_id AS product_option_id_45
FROM
product t0
LEFT JOIN category t19 ON t0.category_id = t19.id
WHERE
t0.id = ?
SELECT t0.id AS id_1, t0.name AS name_2, t0.slug AS slug_3, t0.ref AS ref_4, t0.alt AS alt_5, t0.position AS position_6, t0.price AS price_7, t0.promo AS promo_8, t0.image AS image_9, t0.stock AS stock_10, t0.create_at AS create_at_11, t0.update_at AS update_at_12, t0.active AS active_13, t0.default_name AS default_name_14, t0.long_description AS long_description_15, t0.short_description AS short_description_16, t0.care AS care_17, t0.category_id AS category_id_18, t19.id AS id_20, t19.name AS name_21, t19.slug AS slug_22, t19.image AS image_23, t19.alt AS alt_24, t19.min_price AS min_price_25, t19.update_at AS update_at_26, t19.title_page AS title_page_27, t19.sub_title_page AS sub_title_page_28, t19.cite_page AS cite_page_29, t19.main_image AS main_image_30, t19.main_alt AS main_alt_31, t19.second_image AS second_image_32, t19.second_alt AS second_alt_33, t19.third_image AS third_image_34, t19.third_alt AS third_alt_35, t19.fourth_image AS fourth_image_36, t19.fourth_alt AS fourth_alt_37, t19.nb_display AS nb_display_38, t19.sort AS sort_39, t19.show_sub_categories AS show_sub_categories_40, t19.description AS description_41, t19.meta_title AS meta_title_42, t19.parent_id AS parent_id_43, t0.field_id AS field_id_44, t0.product_option_id AS product_option_id_45 FROM product t0 LEFT JOIN category t19 ON t0.category_id = t19.id WHERE t0.id = '30';
|