DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR SQL
dao function to check if database contains value
@Query("SELECT EXISTS (SELECT 1 FROM example_table WHERE id = :id)") fun exists(id: Int): Boolean
PREVIOUS
NEXT
Tagged:
#dao
#function
#check
#database
ADD COMMENT
Topic
COMMENT
Name
6+3 =
Submit