Thank you for answer.
The way you create this example does not reflect relation 1:n
We know that temperature value to measured values in in relation 1:n
We don't know n , its could be 5 or 100.
As i understand you approach with complex type will be good when we know that for example for every temperature there will be 5 measured values. but we don't know this. Its dynamic value from runtime, not static.
I mixup while writing post complex type with table type. Correct valus which i want to pass are:
- temerature
- date
- measured value table (n-values, dynamic from runtime)
- valueID1, measured value1
- valueID2, measured value2
- valueID3, measured value3
....
- valueIDn, measured valuen
For now i know 2 ways:
1) concatenate values from table to one string parameter (function import apraache)
2) create update statement with table (crud update approache):
- temerature, date, valueID1, measured value1
....
- temerature, date, valueIDn, measured valuen
It makes redundantion.
Both solutions are not ideal.
Thanks for your help!