<div dir="ltr"><div dir="ltr"><div><div>Dear Long Yang,<br><br></div>the specific elements are only listed in the chemical formula fields ('formula', 'calcformula', 'cellformula'). The formula fields all follow the same format:<br></div>"- el1[no1] el2[no2] el3[no3] -", for example, "- F16 H3 O6 Sr5 V3 -".<br><br></div><div>On a pure MySQL level You can use the "LIKE" or "RLIKE" operators to construct the appropriate queries.<br><br></div><div>Hope that helps.<br><br></div><div>Sincerely,<br></div><div>Antanas Vaitkus<br></div></div><br><div class="gmail_quote"><div dir="ltr">On Sun, 30 Dec 2018 at 21:59, Long Yang <<a href="mailto:long.yang@columbia.edu">long.yang@columbia.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;">Hi,<div><br></div><div>I am Long Yang, graduate student from Columbia University, USA. I am trying to query COD by specifying elements. It works as expected on your website, by entering the elements, for example, “Ca”, “C”, “O”. But when I do the SQL query, it doesn’t have similar schema as search in the website. The schema (<a href="http://wiki.crystallography.net/cod_mysql_schema/" target="_blank">http://wiki.crystallography.net/cod_mysql_schema/</a>) only have “ nel” to specify the number of elements, but does not have “elements” thing to enter “Ca”, “C”, “O”. How to do it?</div><div><br></div><div><div><div style="overflow-wrap: break-word;"><div style="overflow-wrap: break-word;"><div style="overflow-wrap: break-word;"><div style="overflow-wrap: break-word;"><div style="overflow-wrap: break-word;">Thank you!</div><div style="overflow-wrap: break-word;"><div style="overflow-wrap: break-word;"><br>Best Regards,<br></div><div style="overflow-wrap: break-word;"><br></div><div style="overflow-wrap: break-word;">Long</div></div></div></div></div></div></div></div></div>_______________________________________________<br>
Cod-bugs mailing list<br>
<a href="mailto:Cod-bugs@lists.crystallography.net" target="_blank">Cod-bugs@lists.crystallography.net</a><br>
<a href="http://lists.crystallography.net/cgi-bin/mailman/listinfo/cod-bugs" rel="noreferrer" target="_blank">http://lists.crystallography.net/cgi-bin/mailman/listinfo/cod-bugs</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div>Antanas Vaitkus,<br></div>PhD student at Vilnius University Institute of Biotechnology,<br><span><span><span>room V325, </span></span></span>Saulėtekio al. 7,<br>LT-10257 Vilnius, Lithuania<br></div><div><div><div><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><br><br></div></div></div></div></div></div></div></div></div></div></div>