pre values look up table

The below will not work because Key is a reserved word. I can't for the life of me figure out the work around for this.

I tried 'Key' , "Key", Key, [Key] 

SELECT * FROM tablename.sys_pre_values

WHERE Key = "MaritalStatus";

Appreciate any help on this... :)

P.

Peer L. Plaut Executive Director, Single Booklovers Connecting Bookworms Since 1970
Quote · 27 Mar 2014

what are you getting that shows it does not work?

caredesign.net
Quote · 27 Mar 2014

See correct statement below :

SELECT * FROM  `sys_pre_values` WHERE `Key` = 'MaritalStatus';

Paypal email is jeromemingo@gmail.com - http://www.boonex.com/market/posts/modzzz
Quote · 27 Mar 2014

I have often wondered... Why the leading __ before the value.

Makes no sense....

Any ideas?

Peer

leading underlines.jpg · 27K · 131 views
Peer L. Plaut Executive Director, Single Booklovers Connecting Bookworms Since 1970
Quote · 3 Apr 2014

 

I have often wondered... Why the leading __ before the value.

Makes no sense....

Any ideas?

Peer


It's a language key. All language keys are prefixed with either 1 underscore _ or two underscores __

You will find many of the language keys used for pre values are prefixed with two underscores and all other language keys are just 1 underscore.

If you do a search in the languages for the key __Single you will find it.


https://www.deanbassett.com
Quote · 3 Apr 2014

Unless I am mistaken, that shows it is a language key that will get translated if you have other languages installed.

Geeks, making the world a better place
Quote · 3 Apr 2014

Geek Girl- That makes sense...

Thanks!

Peer

Peer L. Plaut Executive Director, Single Booklovers Connecting Bookworms Since 1970
Quote · 3 Apr 2014

So, this is the query that works :)

SELECT  `Key`,`Value`, `Order`, SUBSTRING(lkey,3) as 'LKey'   FROM  `sys_pre_values` WHERE `Key` = 'MaritalStatus';

Thanks for all your help!

Peer

Peer L. Plaut Executive Director, Single Booklovers Connecting Bookworms Since 1970
Quote · 3 Apr 2014
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.