Welcome Guest, Not a member yet? Register   Sign In
mysql help
#2

[eluser]xzela[/eluser]
Hi,
What are the benefits of performing this action within SQL?
To solve this problem you can try a subquery. It may or may not work:
Code:
SELECT
  (SELECT COUNT(*) FROM table WHERE something = something_else) + 1 AS position
FROM
  another_table
WHERE
  column = something


Messages In This Thread
mysql help - by El Forum - 05-22-2009, 12:51 PM
mysql help - by El Forum - 05-22-2009, 06:37 PM



Theme © iAndrew 2016 - Forum software by © MyBB