Is SQL a context free language or some other type of language?
相关问题
- SQL join to get the cartesian product of 2 columns
- sql execution latency when assign to a variable
- Difference between Types.INTEGER and Types.NULL in
- php PDO::FETCH_ASSOC doesnt detect select after ba
- Bulk update SQL Server C#
@aquinas wrote:
@MSX wrote:
According to https://stackoverflow.com/a/31265136 SQL is not a regular language. The short explanation is that each select query looks like
and
y
can be another select query itself, so it cannot be simulated with finite-state machine. As mentioned before, there are some CFGs for SQL standarts in Backus–Naur Form, thereby SQL is nonregular context free language.