• Post Reply Bookmark Topic Watch Topic
  • New Topic

a small clarification..  RSS feed

 
Siddharth Mehrotra
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have read in the discussion borad here and also thought the same that if the column name is given as origin as in the exampole below the criteriasind should return "no match found" because the column name in the db.db file is Origin Airport and not orign as per the example given in the instruction manual.
example ...
"Origin='SFO'"

tell me if i'am wrong...
byee
 
Mark Spritzler
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Criteria take the form of a comma separated list of <field name>=<value to match> specifications.
For example, the following argument string would select all records describing flights by the SpeedyAir carrier that originate in San Francisco.
"Carrier='SpeedyAir',Origin='SFO'"

The first sentence says to me that it is supposed to be the fieldName, but the string Does not.
But I agree with you Siddharth. And looking at my code I do make it say "Origin Airport".
Mark
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!