Questions tagged [rowid]

210 questions
2
votes
4 answers

SQLite Find ROWID of most recent or next ROWID

So I have a table with data about an image. The table looks something like this... ROWID|title|description|file_path The file path contains the name of the image. I want to rename the image to match the ROWID. How do I get the latest ROWID? I need…
user2929075
  • 61
  • 1
  • 1
  • 3
2
votes
3 answers

is it safe to perform select by rowid

I wonder is it safe to use rowid for row matching? I have following query: select * from a, (select a.rowid rid, from a, b, c where a.some_column = b.some_column ... union all select a.rowid…
michael nesterenko
  • 14,222
  • 25
  • 114
  • 182
2
votes
1 answer

Using of ORACLE rowId in Hibernate Criteria

I have ORACLE DB and 2 tables. I need select rows from table1 inner join table2 and order by ORACLE RowID column. To select I use criteria query. To add order by statement I use criteria.addOrder(Order.asc("this.rowId")); In mapping RowId look…
pe4enko
  • 354
  • 4
  • 14
2
votes
7 answers

Can a rowid be invalidated right after being inserted in Oracle?

I'm running queries that look something like this: INSERT INTO foo (...) VALUES (...) RETURNING ROWID INTO :bind_var SELECT ... FROM foo WHERE ROWID = :bind_var Essentially, I'm inserting a row and getting its ROWID, then doing a select against…
Jason Baker
  • 192,085
  • 135
  • 376
  • 510
2
votes
1 answer

getting row id from sqlite using other fields as where condition

sir, how can i return the rowid of my database depending on the inputs name, number? this code just return the value 0 everytime. my primary key is KEY_ROWID. thanks for help in advance //get rowid public long getRowId(String name, String number)…
Usui Takumi
  • 355
  • 2
  • 5
  • 19
2
votes
1 answer

Insert record and keep primary key value

I've got a SQLite database and a table that uses an autoincrementing int as the primary key. I've looked through the documentation and it seems that if I perform an INSERT AND REPLACE, it deletes then inserts a record when a duplicate is found.…
superwpf
  • 365
  • 1
  • 2
  • 7
2
votes
1 answer

Getting row ID of dynamic listview in android to add to cart

I have dynamic listview on my android client app that receive data from remote mysql DB. I have a context menu that opens on user click on any row i that listview. There is an option named' add to cart' on that menu. I want to add the clicked row…
ess.crazy
  • 296
  • 1
  • 4
  • 24
1
vote
2 answers

android sqllite database rowid increment while insertion

I have a table in my database with one field declared as _id integer primary key There is no AUTOINCREMENT. Here i have a doubt about how rowid will be updated during insert after a delete. what i observed is if the last row id is x and it is…
png
  • 4,368
  • 7
  • 69
  • 118
1
vote
1 answer

Include ROWID in Dataset when Exporting from Toad

I am trying to export a dataset from Toad to Excel (or text delimited file). I need the ROWID to display in the resulting file. I have "Show ROWID in editable grids" selected in View >> Toad Options >> Data Grids >> Data. ROWID is being displayed in…
Marwan مروان
  • 2,163
  • 8
  • 30
  • 40
1
vote
1 answer

How to get rowID of custom ListView's selected row's child?

I've a custom list view with 4 textViews and 2 buttons,which i am filling up via database, TV NAME | TV EMAIL | TV NO | TV ID(database primary key,set invisible) | ButtonEDIT | ButtonDelete. I successfully got the id from the database,which is set…
user1177583
  • 21
  • 1
  • 2
1
vote
3 answers

Disable all controls of a table column using jQuery

I am looking to disable all the elements (controls) of specified table columns (td's) using jQuery. My table looks like the following :
Anupam
  • 1,821
  • 3
  • 23
  • 41
1
vote
1 answer

viable to perform oracle table rollback by using rowid?

i am performing oracle table rollback using rowId: so before each data injection, i record the max rowid of the table. If anything went wrong, i will delete from table where rowid > max rowid recorded. after deletion is executed, i can still see…
Richard Hsu
  • 843
  • 1
  • 10
  • 15
1
vote
2 answers

Same ROWID in Oracle Clustered Tables

Oracle ROWID is said to be unique within a table. I didn't understand how can two rows of two different tables stored in the same cluster have the same rowid since the last three characters of the ROWID format indicate the row number in the database…
Andy Dufresne
  • 6,022
  • 7
  • 63
  • 113
1
vote
2 answers

Conditionally insert and return rowid or 0?

I know how to do this using a transaction but I was wondering if I can do this in a single line. My actual query is more complex but the part I can't figure out is how to get the rowid or 0 without repeating the where clause insert into…
Cal
  • 121
  • 8
1
vote
1 answer

Add row number column to a reactive data frame in Shiny

I am trying to add a row index column to a reactive data frame created on-the-fly from user inputs. I am able to do this outside of Shiny using the tibble::rowid_to_column function but cannot make it work in the below Shiny app (line 44). Can…
Navi
  • 19
  • 4