Databases
3 posts · All topics
Convert a Database Cursor to a JSON Array — Android App Development
Java code that converts an Android SQLite cursor into a JSON array, handy for PhoneGap plugins that run raw queries.
Move a Database Column to a Different Position
A MySQL ALTER TABLE query that moves a column to a new position within a table.
Doctrine Query to Find the Rank of a Column Value
A Symfony Doctrine query that finds the rank of a row based on a column value, such as a user's rank by marks.