Indexing and slicing with brackets #1811
vanillajonathan
started this conversation in
Ideas
Replies: 1 comment 6 replies
-
Yes I agree this would be good. I'm not sure what the best syntax for this is. If we want to use something like an indexer with So we could start this with a |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Python lets you do string slicing using an indexer with bracket syntax like this:
SQL provides the
SUBSTRING()
function so PRQL could impement a simliar indexer using brackets as in Python and translate that into SQL.Docs: https://docs.python.org/3/tutorial/introduction.html#strings
substring()
in IBM Db2substring()
in MariaDBsubstring()
In MySQLsubstring()
in Oracle Databasesubstring()
in PostgreSQLsubstring()
in SQLitesubstring()
in Microsoft SQL ServerBeta Was this translation helpful? Give feedback.
All reactions