There might be time when you can’t use ActiveRecord finders but have to write custom queries to fetch the records.
Below example is to fetch records using oci8 adapter.(i.e If you are using oracle db)
1
|
|
The output will be
1
|
|
which is nothing but a cursor object. But how to read the records from this cursor?.
1 2 3 |
|
The output will be
1 2 3 |
|