SQL 方言通

首页 / 工具 / SQL 迁移检查器

SQL 迁移检查器

粘贴一段 SQL,选择迁移前后的引擎,下面会列出需要改写的函数和日期格式符,并给出能安全自动替换的部分。SQL 只在浏览器中处理,不会上传。

只识别函数名和日期格式字符串,不解析完整语法。这里没有收录的函数不代表兼容,会在结果末尾单独列出。

需要启用 JavaScript 才能检查。也可以直接查看迁移清单。

怎么判断要不要改写

目前收录 45 个常用函数:add_months、any_value、approx_count_distinct、array_contains、coalesce、collect_list、collect_set、concat、concat_ws、date_add、date_format、date_sub、dateadd、datediff、datetrunc、dayofweek、decode、explode、from_json、from_unixtime、get_json_object、getdate、if、instr、last_day、length、max_by、max_pt、months_between、nvl、percentile_approx、regexp_extract、regexp_replace、size、sort_array、split、split_part、str_to_map、substr、substring_index、to_char、to_date、unix_timestamp、weekofyear、wm_concat。