Click here to Skip to main content
15,902,445 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I need to have the value of 1st row of table on the page load or refresh. I want a function to be called at each page refresh in javascript file which store the value of first row of table
Posted

1 solution

What do you want to do? "Store"? That does not make sense. I guess "Read". And how to do that, depends on your database engine. With Microsoft SQL Server and Access, you can do a SELECT TOP 1 ..., with MySQL you have to add a LIMIT clause at the end ... LIMIT 1, with Oracle you use the magic rownum column in the WHERE clause ... WHERE ROWNUM=1 ...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900