Keith Devens .com |
Tuesday, October 7, 2008 | ![]() |
| Nonsense on stilts! – Derived from Jeremy Bentham | ||
|
| ← Unison File Synchronizer | Future-proof Movable Type URLs → |

83.67.23.68 wrote:
217.227.197.125 wrote:
I don't think your question is serious, but here is an answer:
select /mydatabase/mytable[@a = 'apples' position() = first()) is not possible in PostgreSQL because /mydatabase/mytable[@a = 'apples' position() = first()) is invalid SQL 
Feel free to post a comment below. Please see my comment policy.
Formatting Rules (No HTML):
Generated in about 0.105s.
(Used 8 db queries)

Why didn't he just do this
Create table mytable{
a varchar,
b varchar
}
insert into mytable('apples','green')
insert into mytable('apples','red')
select /mydatabase/mytable[@a = 'apples' position() = first())