Phpmysql query problems

Source: Internet
Author: User
If it is a view, you have encountered some problems when querying the view. please help me! The name restriction in the query is 1. admin_type02.related_eth_id03.work_mode_related_name can be empty, but if it is not empty, you need to determine whether the BRIDGE-like value is like...


If it is a view, you have encountered some problems when querying the view. please help me!

The name condition in the query is
1. admin_type = 0
2. related_eth_id = 0
3. work_mode_related_name can be empty, but if it is not empty, you need to judge whether it is similar to the BRIDGE value. if it is a BRIDGE value, you need to judge whether the device_type value is 0. if it is 0, OK. Otherwise, the query will not be performed. is a restriction.

Ps: This table is related to network interfaces and bridges. work_mode_related_name is the name of the network port bound to the front network port (name). The problem here is that the network port is bound to a BRIDGE) you need to determine the device_type, because if the network port is bound with a bridge, device_type = 0, the network eloquence is normal, so this is the requirement, the above about the network port. You can refer to the bridge information for more information! Thank you!

Reply content:


If it is a view, you have encountered some problems when querying the view. please help me!

The name condition in the query is
1. admin_type = 0
2. related_eth_id = 0
3. work_mode_related_name can be empty, but if it is not empty, you need to judge whether it is similar to the BRIDGE value. if it is a BRIDGE value, you need to judge whether the device_type value is 0. if it is 0, OK. Otherwise, the query will not be performed. is a restriction.

Ps: This table is related to network interfaces and bridges. work_mode_related_name is the name of the network port bound to the front network port (name). The problem here is that the network port is bound to a BRIDGE) you need to determine the device_type, because if the network port is bound with a bridge, device_type = 0, the network eloquence is normal, so this is the requirement, the above about the network port. You can refer to the bridge information for more information! Thank you!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.