Selecting a row that was just inserted [Solved]
Posted: Fri Apr 15, 2016 1:26 am
Hi,
Is there a "semi-automated" way, using some SQL trickery, of selecting the last row inserted into a table? Is there a way to using SELECT COUNT(column_name) FROM table_name? It will return the row count as long as there aren't any null values. I need to select a column in a row that was just inserted. Not a problem if there are only a few rows but that doesn't happen very often. Thanks for help.
Is there a "semi-automated" way, using some SQL trickery, of selecting the last row inserted into a table? Is there a way to using SELECT COUNT(column_name) FROM table_name? It will return the row count as long as there aren't any null values. I need to select a column in a row that was just inserted. Not a problem if there are only a few rows but that doesn't happen very often. Thanks for help.