是否存在将JSON值转换为SQL查询的实用程序
{
"table_name": "People",
"where": {
"and": {
"Name": "bob",
"Age": 21
},
"or": {
"Name": "alice"
}
}
}
这会给我一个结果:
SELECT *
FROM People
WHERE (Name='bob' AND Age=21) OR (Name='alice')