on 09-04-2020 8:09 AM
Hi,
Is it possible to shorten all entries of a column in a database table ?
e.g. from 10 characters to 5 ? And this in a CDS-View?
To shorten the value of a column in a CDS View projection you can use e.g. the SUBSTRING, LEFT, RIGHT, ... function, depending on your needs.
If you want to persist the changes you cannot do it with a CDS View. You have to use an ALTER statement to shorten the length of the column (if you want to do that, consider what information you will lose aka what does not fit into the shortend length).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.