Which are the SQL improvements you are waiting for?

后端 未结 30 1242
感情败类
感情败类 2021-02-01 22:29

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

相关标签:
30条回答
  • 2021-02-01 23:07

    I know it's wildly unrealistic, but I wish they'd make the syntax of INSERT and UPDATE consistent. Talk about gratuitous non-orthogonality.

    0 讨论(0)
  • 2021-02-01 23:08

    I would like to see the ability to use Regular Expressions in string handling.

    0 讨论(0)
  • 2021-02-01 23:08

    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 JOINs 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.

    0 讨论(0)
  • 2021-02-01 23:08

    Improved pivot tables. I'd like to tell it to automatically create the columns based on the keys found in the data.

    0 讨论(0)
  • 2021-02-01 23:08

    Increased temporal database support in Sql Server. Intervals, overlaps, etc.

    Increased OVER support in Sql Server, including LAG, LEAD, and TOP.

    0 讨论(0)
  • 2021-02-01 23:08

    My wish list (for SQLServer)

    1. Ability to store/use multiple execution plans for a stored procedure concurrently and have the system automatically understand the best stored plan to use at each execution.

    Currently theres one plan - if it is no longer optimal its used anyway or a brand new one is computed in its place.

    1. Native UTF-8 storage

    2. 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.

    3. PCRE in replace functions

    4. 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.

    0 讨论(0)
提交回复
热议问题