[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: indenting SQL in php_mode
From: |
Frank Thieme |
Subject: |
Re: indenting SQL in php_mode |
Date: |
Mon, 08 Dec 2008 15:01:28 +0100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux) |
On Mo 08 Dez 2008 14:32, "Lennart Borgman" <lennart.borgman@gmail.com> writes:
> Could you please show me some examples of how sql in php look? (Delimiters
> etc.)
I don't know whether there is a standard, but I do it like this:
$query = "SELECT field1,
field2,
field3
FROM table1 t1,
table2 t2
WHERE t1.foo = t2.bar
AND field1 = 'foobar'";
Bye...Frank