Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
How do I retrieve data in matlab database using column name (where clause)?

Subject: How do I retrieve data in matlab database using column name (where clause)?

From: kainat ali

Date: 17 Apr, 2013 06:12:13

Message: 1 of 1

How do I retrieve data in matlab database using column name (where clause)? I've tried this but it doesn't work:

    catgQuery = strcat('select ID from MyTable where ColumnName= ', Category);
    catgCurs = exec(conn,catgQuery);
    catgResult = fetch(catgCurs);
    r1 = catgResult.data

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us