Dealing with SQL shows us some limitations and gives us an opportunity to imagine what could be.
Which improvements to SQL are you waiting for? Which would you put on t
I know it's wildly unrealistic, but I wish they'd make the syntax of INSERT and UPDATE consistent. Talk about gratuitous non-orthogonality.
I would like to see the ability to use Regular Expressions in string handling.
I'd like the vendors to actually standardise their SQL. They're all guilty of it. The LIMIT/OFFSET
clause from MySQL and PostGresql is a good solution that no-one else appears to do. Oracle has it's own syntax for explicit JOIN
s whilst everyone else uses ANSI-92. MySQL should deprecate the CONCAT()
function and use ||
like everyone else. And there are numerous clauses and statements that are outside the standard that could be wider spread. MySQL's REPLACE
is a good example. There's more, with issues about casting and comparing types, quirks of column types, sequences, etc etc etc.
Improved pivot tables. I'd like to tell it to automatically create the columns based on the keys found in the data.
Increased temporal database support in Sql Server. Intervals, overlaps, etc.
Increased OVER support in Sql Server, including LAG, LEAD, and TOP.
My wish list (for SQLServer)
Currently theres one plan - if it is no longer optimal its used anyway or a brand new one is computed in its place.
Native UTF-8 storage
Database mirroring with more than one standby server and the ability to use a recovery model approaching 'simple' provided of course all servers are up and the transaction commits everywhere.
PCRE in replace functions
Some clever way of reusing fragments of large sql queries, stored match conditions, select conditions...etc. Similiar to functions but actually implemented more like preprocessor macros.