How to access delta column with fieldcondition?

I've tried

...
$query->fieldCondition('field_name', 'delta', 0, '<>');
...

this doesn't work.

Anyone?

Comments

7thkey’s picture

Oops I just find out.

There's a special function for it instead of fieldCondition.

$query->fieldDeltaCondition('field_name', 0, '<>');