Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why I'm getting "column not found" error?
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01190239
Message ID:
01190244
Vues:
23
This message has been marked as the solution to the initial question of the thread.
>I am getting error"Columan "exmcode" is not found under this sql
>
>
>SELECT Exam.code as exmcode, Exam.descr, Exam.fmdate, ;
>Exam.year, Exam.change1, Exam.sno,;
>  Exam.nmonth, Exam.bex, Exam.begdate, ;
>Student.code as zcode, Student.descr as zname,;
>  Student.fname, Student.sex, Student.sec, ;
>Student.lcode, Student.scode,;
>  Student.broll, Student.path;
> FROM student,;
>     exam;
> ORDER BY Exam.exmcode;
>         WHERE student.scode=thisform.scode.value;
> .and. student.lcode=thisform.lcode.value ;
and student.sec=thisform.sec.value.and.student.admtd=1;
>.and. Exam.exmcode=thisform.code.value;
>into cursor new
Put Order by 1 instead. You can not use new (created) names in ORDER BY clause.

Also, AFAIK, it's better to use local variables rather than thisform properties in SQL. At least I always try to stick with this rule.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform