Select a specific index line in SQLite

I have an index, and I need to find the row in the table with that index in SQLite.
Example:

Index= 1

Table:

ID-Name
aa1 John
aa2 Mark <-- I need this row
aa3 Lucy
aa4 Jim

Which is the right choice I can use to solve the problem?

Generally, to get specific rows, you can always request them via rowid, for example

< /p>

SELECT name FROM UnknownTable WHERE rowid = 1;

However, there are some atypical situations that will rule out this situation. You really want to be on rowids Read to make sure your table can do what you want.

I have an index, and I need to find the rows in the table with that index in SQLite .
Example:

Index = 1

Table:

ID-Name
aa1 John
aa2 Mark <-- I need this row
aa3 Lucy
aa4 Jim

Which is the right choice I can use to solve the problem?

Usually, to get specific rows, you can always request them via rowid, such as

SELECT name FROM UnknownTable WHERE rowid = 1;

However, there are some atypical situations that will rule out this situation. You really want to read on rowids to make sure your table can do what you want Acting.

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 926 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.