Original Message-
> From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On
> Behalf Of Larry Martell
> Sent: Monday, February 20, 2017 3:00 PM
> To: django-users@googlegroups.com
> Subject: Re: combining ORM and raw SQL in same query
>
> Thanks!
>
&
Larry Martell
Sent: Monday, February 20, 2017 3:00 PM
To: django-users@googlegroups.com
Subject: Re: combining ORM and raw SQL in same query
Thanks!
On Mon, Feb 20, 2017 at 10:52 AM, m1chael wrote:
> i did something like this recently using .extra / select
>
> https://docs.djangoproject.c
Thanks!
On Mon, Feb 20, 2017 at 10:52 AM, m1chael wrote:
> i did something like this recently using .extra / select
>
> https://docs.djangoproject.com/en/1.10/ref/models/querysets/#extra
>
>
>
> On Mon, Feb 20, 2017 at 10:49 AM, Larry Martell
> wrote:
>>
>> Is there any way to use both the ORM
i did something like this recently using .extra / select
https://docs.djangoproject.com/en/1.10/ref/models/querysets/#extra
On Mon, Feb 20, 2017 at 10:49 AM, Larry Martell
wrote:
> Is there any way to use both the ORM and raw SQL in the same query?
>
> I have an existing app that uses the ORM
Is there any way to use both the ORM and raw SQL in the same query?
I have an existing app that uses the ORM and now I have a need to add
SQL like this to the select:
(CASE
WHEN TRIM(IFNULL(roiname, '')) IN ('', 'None') THEN CONCAT_WS('.',
roi_type_id, roi_id)
WHEN CONCAT_WS('.', roi_type_id,
5 matches
Mail list logo