addressalign-toparrow-leftarrow-rightbackbellblockcalendarcameraccwcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscrossdots-three-verticaleditemptyheartexporteye-with-lineeyefacebookfolderfullheartglobegmailgooglegroupsimageimagesinstagramlinklocation-pinm-swarmSearchmailmessagesminusmoremuplabelShape 3 + Rectangle 1outlookpersonJoin Group on CardStartprice-ribbonImported LayersImported LayersImported Layersshieldstartickettrashtriangle-downtriangle-uptwitteruseryahoo

Microsoft SQL syntax question

From: user 4.
Sent on: Friday, January 11, 2008 9:31 AM
Hey all,

I apologize for tainting this LAMP list with a Microsoft SQL question, but
it's driving me nuts and I need some help.  Under MySQL, I'm able to form
queries like:

    SELECT * from `my_table` where `column_name` LIKE '%foobar%';

The tables and columns are delineated by a tick (`).

This doesn't seem to work in Microsoft SQL, however.  Does anyone know what
the corresponding delineated syntax is?  And more importantly, is there a
common syntax which will work for both?  (Leaving out the delineator mark is
not an option, as we have some table/column names which can conflict with
built-in keywords for the DBMS.)

Thanks for the help!

Our Sponsors

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy