I run the simplest query:
select id from table_xx where name='aaa'
toward this table: table_xx
-----------------------------
| id | name |
-----------------------------
| 1 | aaa |
| 2 | bbb |
| 3 | aaa |
------------------------------
Note: id is a primary key.
so if I run code like this:
result = execute_query(query)
print (result[0][0])
Will it ALWAYS return the smallest id first in dataset? which is id=1
or is there a chance that id=3 will be returned as the first row in dataset