Lines Matching refs:case
93 select setval (''persons_id_seq'', (select case when max(id) is null then 1 else max(id) end from persons));
95 values ((select case when max(id) is null then 1 else nextval(''persons_id_seq'') end from persons),'''','''');
102 select case
107 select case
117 select setval (''phones_id_seq'', (select case when max(id) is null then 1 else max(id) end from phones));
125 select setval (''documents_id_seq'', (select case when max(id) is null then 1 else max(id) end from documents));
127 values ((select case when max(id) is null then 1 else nextval(''documents_id_seq'') end from documents),'''','''');
133 select setval (''institutes_id_seq'', (select case when max(id) is null then 1 else max(id) end from institutes));
135 values ((select case when max(id) is null then 1 else nextval(''institutes_id_seq'') end from institutes),'''');
141 select setval (''referrals_id_seq'', (select case when max(id) is null then 1 else max(id) end from referrals));
143 values ((select case when max(id) is null then 1 else nextval(''referrals_id_seq'') end from referrals),'''','''');