UPDATE A
SET Totalfixed = SUM(price * quantity)
FROM Order_t A
INNER JOIN orderline ol ON ol.orderid = A.orderid
INNER JOIN product p ON ol.productid = p.productid
我无法获得简单的套接字打开它给编译器错误
答案 0 :(得分:0)
看起来你正试图融合C和Java。
纯Java中的示例:
import java.net.Socket;
import java.io.InputStream;
import java.io.OutputStream;
public class MyFirstSocket {
public static void main(String[] args) {
Socket socket = new Socket("localhost", 80);
InputStream in = socket.getInputStream();
OutputStream out = socket.getOutputStream();
}
}
如果您想在C中使用套接字,请参阅Simplest Way To Open and Use a Socket in C。