sql - Check if a table has X amount of records -
i have script connects database , inserts data based on form selections
function(tx) { ensuretableexists(tx); var firstname = firstnamebox.value; var playingposition = playingpositionbox.value; var sql = 'insert yellows (firstname, playingposition) values ("' + firstname + '","' + playingposition + '")'; tx.executesql(sql); },
what best method search if table has 5 entries. if database has 5 entries reject insert statement , inform user there no space.
Comments
Post a Comment