Hi,
Can anyone help me with the method to find the source table's row number when doing an SQL operation?
In previous version of FlexSim getquerymatchtablerow() command will solve the issue.
Regards,
Arun KR
You can include the special column ROW_NUMBER in your query:
Table result = Table.query("SELECT MyTable.ROW_NUMBER, MyTable.ID FROM MyTable");
int rowNumber = result[ 1 ][ 1 ]; int rowId = result[ 1 ][ 2 ];
I cant seem to find mention of this special column ROW_NUMBER anywhere in the documentation. Are there any other special rows or similar SQL features added with the dot-syntax?
Martin,
it is explained in the "Miscellaneous Concepts/SQL/Reference" section of the user manual at the very bottom.
Best wishes
Ralf
11 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved