I am trying to simplify my problem. I have a mysql table like this:
meta_key meta_value
rdv_0_date 12082013
rdv_1_date 13082013
rdv_0_time 12h
rdv_1_time
rdv_place Paris
I want as my query result two row:
1. 12082013 12h
2. 13082013
SELECT * from mytable AS mt1
LEFT JOIN mytable AS mt2
WHERE mt1.meta_key LIKE 'rdv_%s_date'
OR mt1.meta_key LIKE rdv_%s_time'