Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

how to sort and selection, plz help

New Here ,
Dec 13, 2012 Dec 13, 2012

Copy link to clipboard

Copied

Hello,

I have a access database list, and I can sort with alphabetical list like a, b, c, ...

But now, I only want to get chinese list as chinese version is selected, to get english list as english version is selected, because the database list includes chinese and english information, for example:

Language name        company

cn              yageo     国巨

en              yageo     yageo

cn              kemet     kemet

cn              vishay    vishay

en              nxp        nxp

when sort=y and lang=en, result list will be yageo, nxp

how can I do to get it?

Thanks in Advance!

Valley

TOPICS
Server side applications

Views

821
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 14, 2012 Dec 14, 2012

Copy link to clipboard

Copied

Are you asking how to filter your recordset? If that's the case, then you need to pass the language key to the SQL select statement to be used in the WHERE clause. For example:

SELECT * from MyTable WHERE lang = "en"

If this is not what you are asking, then please include more details.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 16, 2012 Dec 16, 2012

Copy link to clipboard

Copied

Actually, I cannot get correct answer.

I have a list with many data

How can I get a list with alphabetic=a and language=en thru following?

list.asp?sort=a&lang=en

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 16, 2012 Dec 16, 2012

Copy link to clipboard

Copied

Thanks, now I got it.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 16, 2012 Dec 16, 2012

Copy link to clipboard

Copied

this

SELECT * from MyTable WHERE lang = "en"

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 20, 2012 Dec 20, 2012

Copy link to clipboard

Copied

LATEST

I used:

SELECT *

WHERE tb like 'MMColParam%' and Language = 'MM_lang'

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines