O'Reilly Answers is a community site for sharing knowledge, asking questions, and providing answers that brings together our customers, authors, editors, conference speakers, and Foo (Friends of O'Reilly). More »
If you’re interested only in counting events, use a sequence-generation mechanism that uses just one row per
counter.AUTO_INCREMENTcolumns are useful for generating sequences across a ...
If you want to know things about the result set, such as the column names
and data types, or how many rows and columns there are, use the appropriate capabilities provided by your API.For sta...
Sometimes the row count is the return value of the function that
issues the statement. Other times the count is returned by a separate
function that you call after issuing the statem...
If you need into create a table that has exactly the same structure
as an existing table, use CREATE TABLE ... LIKE to clone the
table structure. If it’s also necessary to copy s...
If your query result includes NULL values, but you're not sure how to tell where they are, your API probably has some special value that represents NULL by convention. You just have
to know w...
If you need to construct SQL statements that refer to data values containing special characters such as quotes or backslashes, or special values such as NULL, or you are constructing statements using ...